Yufan Zhong / Mbed 2 deprecated GOLD_MINER

Dependencies:   mbed

Revision:
12:07a9f2140d9b
Parent:
11:9da147cd7c18
Child:
13:3299ab0ff2f0
--- a/main.cpp	Mon Apr 27 05:44:02 2020 +0000
+++ b/main.cpp	Mon Apr 27 16:02:47 2020 +0000
@@ -53,19 +53,19 @@
     if(number_of_failures > 0) return number_of_failures;
 #endif
 
-    int fps = 8;  // frames per second
+    //int fps = 8;  // frames per second
 
     init();     // initialise and then display welcome screen...
-    welcome();  // waiting for the user to start
+   // welcome();  // waiting for the user to start
      // first draw the initial frame 
-    wait(1.0f/fps);  // and wait for one frame period
+    //wait(1.0f/fps);  // and wait for one frame period
 
 
     // game loop - read input, update the game state and render the display
     while (1) {
         
          miner.state_switch(pad,lcd);
-        wait(1.0f/fps);
+        //wait(1.0f/fps);
     }
 }
 
@@ -78,6 +78,7 @@
      
     // initialise the game with correct claw and winch sizes
     miner.init(WINCH_WIDTH,WINCH_HEIGHT,GOLD_NUM,MONSTER_SPEED);
+    miner.init_unchanged_parameter();
 
 }