Initial publish
Dependencies: mbed
Fork of el17dg by
Diff: game/enemies.h
- Revision:
- 30:d454d0cb72bc
- Parent:
- 29:579e00b7f118
- Child:
- 31:becb8f6bf7b7
--- a/game/enemies.h Mon Apr 15 12:59:51 2019 +0000 +++ b/game/enemies.h Tue Apr 16 21:16:33 2019 +0000 @@ -10,7 +10,7 @@ /** Enemy speed movement - increasing the value will increase the speed.*/ extern int enemy_speed = 1; /** Enemy blast speed - increasing the value will increase the speed.*/ -extern int enemy_blast_speed = 3; +extern int enemy_blast_speed = 2; /** Maximum enemies allowed on the screen */ const int max_enemies = 4; /** Maximum enemies' blasts allowed on the screen*/ @@ -167,7 +167,8 @@ /** @brief activates a blast and gives the start positions * @details This function fires a blast whenever it is free in the blast array. * If the blast is free to be shot, it will become active and will get the. - * positions of x and y in front of the enemy ship + * positions of x and y in front of the enemy ship + * @param enemy ~~~~~~~~~~~~~~~~~~~~~~~~~~(const Enemy&) */ bool fireEnemyBlast(const Enemy& enemy) { int found = -1;