Haoyan Zhang
/
el17h2z1
deemo1
Diff: mian.cpp
- Revision:
- 4:9fa0c5edd1a1
- Parent:
- 3:1db91ad3ab84
- Child:
- 5:32dbfaf578dd
--- a/mian.cpp Tue May 12 15:13:22 2020 +0000 +++ b/mian.cpp Tue May 12 15:54:51 2020 +0000 @@ -23,6 +23,8 @@ #define SWARM_SPEED 1 #define BOSS_HEIGHT 4 #define BOSS_WIDTH 6 +#define ACID_HEIGHT 3 +#define ACID_WIDTH 1 @@ -90,7 +92,7 @@ pad.init(); // initialise the game with correct ball and paddle sizes - Starcraft.init(BATTLESHIP_HEIGHT, BATTLESHIP_WIDTH, LASER_HEIGHT, LASER_WIDTH,SWARM_HEIGHT, SWARM_WIDTH, BOSS_HEIGHT, BOSS_WIDTH, SWARM_SPEED); + Starcraft.init(BATTLESHIP_HEIGHT, BATTLESHIP_WIDTH, LASER_HEIGHT, LASER_WIDTH,SWARM_HEIGHT, SWARM_WIDTH, BOSS_HEIGHT, BOSS_WIDTH, ACID_HEIGHT, ACID_WIDTH, SWARM_SPEED); } // this function draws each frame on the LCD