A simple STG Game for 2017 Programming Lesson B, ACM Class, SJTU.
Mainly coded by Zhao Hanye.
main.cpp
SDL2_header.cpp
item.cpp
draw.cpp
deal.cpp
include/SDL2_header.h
include/res_path.h
include/cleanup.h
include/pointd.h
include/others.h
include/item.h
include/draw.h
include/deal.h
res/...
SDL2_header.cpp
include/res_path.h
include/cleanup.h
include/pointd.h
src/main2.cpp
-
Perhaps the final version.
-
Prerelease.
-
Add bonus tools.
-
Repair some bugs.
- Adjust the speed of enemy 2 to avoid unavoidable tracking.
-
Repair bugs with the directions of bullets of enemy 0.
-
Add a new type of enemy:
eType = 2
, which always move to the player.
-
Add a new type of enemy:
eType = 1
. -
Adjust the attack speed of enemy 0.
-
Add bursting animation for enemies.
-
Change the screen into two columns: the right side is used for showing information.
-
Add new function: 'drawGameInfo'.
-
Create ending screen.
-
Add new function: 'drawEndInfo'.
-
Deal with collision between player and enemies.
-
Repair bugs with bomb.
-
Change the structure of project: real multifile structure constructed!
-
Repair bugs with bullets' angle.
-
Draw game-over animation.
-
Add new function:
dealWithCollision
. -
But only complete bullets with planes part.
-
Add comments about classes hierarchy.
Support to multifile.
You can use muti-file structures now.
A bug about memory-leak has been fixed.
Rename pointd.hpp -> pointd.h
Add new file: src/SDL2_header.cpp
Modify files in include folder.
add duration_i
fixed main.cpp & main2.cpp memory leak bug
( in drawHint(), a value of Image* did not call clearup() )
Add a type of enemy planes: eType = 0
.
Construct the basis structure.
-
Add new function:
drawImageC
. -
Add new classes:
item
and its derived classesPlane
,Enemy
andBullet
.
The first commitment, including initial files and two simple demos privided by assistant teachers.