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:
- 30:814674b189f0
- Parent:
- 29:e96d91f1d39c
- Child:
- 31:6015e8ed859c
--- a/GameEngine/GameEngine.h Thu May 14 14:19:24 2020 +0000 +++ b/GameEngine/GameEngine.h Thu May 14 17:37:37 2020 +0000 @@ -61,11 +61,23 @@ /** Draws each explosion object if collision detected */ void draw_explosions(); + /** Resets the map after spaceship death*/ + void reset_map(); + // Variables --------------------------------------------------------------- /** Define direction d of joystick*/ Direction d_; + /** Number of spaceship lives remaining*/ + int spaceship_lives; + + /** Flag for if spaceship is destroyed*/ + bool spaceship_destroyed; + + /** Fcounter to reset map after set amount of frames*/ + int reset_map_counter; + // Vectors ----------------------------------------------------------------- /** Vector to store each new bullet object*/