contains my game for the embedded systems project 2645

Dependencies:   mbed FXOS8700CQQQ

Revision:
31:4d4a9d78cae5
Parent:
30:c5060010a1e6
Child:
32:e5d997d2ed79
diff -r c5060010a1e6 -r 4d4a9d78cae5 GameMenus/Menus.cpp
--- a/GameMenus/Menus.cpp	Sat Apr 27 02:00:28 2019 +0000
+++ b/GameMenus/Menus.cpp	Sun Apr 28 02:43:58 2019 +0000
@@ -114,7 +114,17 @@
   wait(0.2);
 }
 
-
+void Menus::SecondInstructionsMenu(N5110 &lcd){
+    lcd.clear();
+    lcd.printString("U can also use",0,0); 
+    lcd.printString("accelormeter",0,1);
+    lcd.printString("to control ",0,2);
+    lcd.printString("the rocket ",0,3);
+    
+    lcd.printString("< press BACK ", 12, 5);
+    lcd.refresh();
+}
+      
 void Menus::InstructionsMenu(Gamepad &pad,N5110 &lcd){
     
     lcd.clear();
@@ -123,17 +133,21 @@
     lcd.printString("or L & R",0,2);
     lcd.printString("to escape ",0,3);
     lcd.printString("enemies.",0,4);
-    lcd.printString("< press BACK ", 12, 5);
+    lcd.refresh();
+    wait(3);
+    SecondInstructionsMenu(lcd);
+    
     
     lcd.refresh();
-    wait(0.5);
+    wait(1);
     while ( pad.check_event(Gamepad::BACK_PRESSED) == false){//keep looping since back not pressed
         pad.leds_on();//turn all leds on
         wait(0.1);
         pad.leds_off();//turn all leds off
         wait(0.1);
         
-    }  
+    }
+      
 }