Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: GameEngine/GameEngine.h
- Revision:
- 31:6015e8ed859c
- Parent:
- 30:814674b189f0
- Child:
- 32:c006a9882778
diff -r 814674b189f0 -r 6015e8ed859c GameEngine/GameEngine.h
--- a/GameEngine/GameEngine.h Thu May 14 17:37:37 2020 +0000
+++ b/GameEngine/GameEngine.h Thu May 14 18:34:56 2020 +0000
@@ -39,8 +39,8 @@
/** Gets joystick direction from gamepad and stores it in d_ */
void read_joystick_direction();
- /** Creats bullet object if button A is pressed and stores in vector */
- void create_bullet();
+ /** Creats weapons object if button A is pressed and stores in vector */
+ void create_weapons();
/** Draws each bullet object and deleted object after set movement
* distance
@@ -75,9 +75,12 @@
/** Flag for if spaceship is destroyed*/
bool spaceship_destroyed;
- /** Fcounter to reset map after set amount of frames*/
+ /** Counter to reset map after set amount of frames*/
int reset_map_counter;
+ /** Counter for how smart bombs left*/
+ int smart_bomb_counter;
+
// Vectors -----------------------------------------------------------------
/** Vector to store each new bullet object*/