Ben Evans / Mbed 2 deprecated Defender_Game

Dependencies:   mbed

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*/