Mochu Yao explorer game

Dependencies:   mbed

Revision:
32:47d98959b4ef
Parent:
22:f8ba0ab7465c
Child:
33:ea83f08fa466
--- a/Gameengine/Gameengine.cpp	Wed Apr 29 04:49:10 2020 +0000
+++ b/Gameengine/Gameengine.cpp	Wed Apr 29 12:19:12 2020 +0000
@@ -30,14 +30,14 @@
     if(_player.get_reset_flag()) {
           gamepad.leds_on();
           lcd.clear();
-    for (int j = 0; j < 80; j++) { 
-      lcd.printString("Try Again",30,2);
-      lcd.printString("Score:",10,4);  
+      lcd.printString("Try Again",0,2);
+      lcd.printString("Score:",0,4);  
       lcd.refresh();
       // dependent on counters.
       wait(0.001);  // Control speed of the sequence.
       sprintf(buffer,"%2d",_player_score); 
-      lcd.printString(buffer,30,4); }
+      lcd.printString(buffer,15,4);
+      reset_game_engine();
        }
       }