Ben Evans / Mbed 2 deprecated Defender_Game

Dependencies:   mbed

Revision:
45:fc3238cd28c6
Parent:
43:d43759dbddb9
Child:
47:49fa1adc10b4
--- a/GameEngine/GameEngine.h	Tue May 19 12:17:33 2020 +0000
+++ b/GameEngine/GameEngine.h	Tue May 19 12:40:14 2020 +0000
@@ -140,44 +140,44 @@
         MenuParts current_menu_part_;
         
         /** Volatile flag for ISR */
-        volatile int g_lcd_frame_time_flag;  
+        volatile int lcd_frame_time_flag_;  
     
     //Spacehip Control  
         /** Define points*/
-        int points; 
+        int points_; 
         
         /** Define direction d of joystick*/
         Direction d_; 
         
         /** Flag for if spaceship is destroyed*/
-        bool spaceship_destroyed;
+        bool spaceship_destroyed_;
         
         /** Number of spaceship lives remaining*/
-        int spaceship_lives;
+        int spaceship_lives_;
         
     // Map Control     
         /** Counter to reset map after set amount of frames*/
-        int reset_map_counter;
+        int reset_map_counter_;
           
     // Alien Control     
         /** Counter for spawning aliens*/
-        int spawn_alien_counter;
+        int spawn_alien_counter_;
         
         /** Counter for numeber of aliens*/
-        int alien_number_counter;
+        int alien_number_counter_;
         
-        /** Counter for spawning aliens*/
-        double spawn_alien_rate;
+        /** Miltiplier to increase number of alien as time goes on */
+        int spawn_time_multipler_;
     
     // Weapon Control   
         /** Counter for smart bomb timer*/
-        int smart_bomb_timer;
+        int smart_bomb_timer_;
         
         /** Counter for bullet timer*/
-        int bullet_timer;
+        int bullet_timer_;
         
         /** Counter for how smart bombs left*/
-        int smart_bomb_counter;
+        int smart_bomb_counter_;
         
     // Vectors -----------------------------------------------------------------