Kaif Kutchwala 201267448 ELEC2645 Project

Dependencies:   mbed

Revision:
24:c110f92fe266
Parent:
23:ad9ac069e751
Child:
25:467d8fd0fec4
--- a/Game/Game.cpp	Mon May 25 13:12:31 2020 +0000
+++ b/Game/Game.cpp	Mon May 25 13:19:11 2020 +0000
@@ -17,6 +17,7 @@
 Game::~Game() {}
 
 void Game::init() {
+    level_flag = 1;
     _is_goal = false;
     _lives = 3;
     _new_lives_threshold = 0;
@@ -38,8 +39,7 @@
         printf("Initial Highscore found: %d\n",_highscore);
         set_highscore(_highscore);
         fclose(fp);  // ensure you close the file after reading
-    }
-    
+    }  
 }
 void Game::play() {
     // if all live are lost game ends