Initial publish

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Revision:
27:f05f4e738ba9
Parent:
24:0570cb4b92d7
Child:
28:35af3843de8f
--- a/tutorial/tutorial.cpp	Sat Apr 06 20:13:33 2019 +0000
+++ b/tutorial/tutorial.cpp	Mon Apr 08 14:41:57 2019 +0000
@@ -5,7 +5,7 @@
 #include "models.h"
 
 
-const int total_pages = 3;
+const int total_pages = 7;
 const float time_delay = 100;
 
 Tutorial::Tutorial() {                              
@@ -42,7 +42,6 @@
     lcd.printString("ship movement",0,4);
     }
     
- 
     else if (current_page == 1){
     lcd.printString("Evade enemy ",0,1);
     lcd.printString("shots and",0,2);
@@ -51,11 +50,36 @@
     }
     
     else if (current_page == 2){
+    lcd.printString("Your health is",0,1);
+    lcd.printString("shown below",0,2);
+    lcd.printString("the screen ",0,3);
+    lcd.printString("Its LEDs. ",0,4);
+    }
+    
+    else if (current_page == 3){
     lcd.printString("Also. ",0,1);
     lcd.printString("Kill the ",5,2);
     lcd.printString("Enemies!!! ",10,3);
     }
     
+    else if (current_page == 4){
+    lcd.printString("foe died= 30",0,1);
+    lcd.printString("miss shot= -10",0,2);
+    lcd.printString("foe flew= -50",0,3);
+    lcd.printString("Be careful ",10,4);
+    }
+    
+    else if (current_page == 5){
+    lcd.printString("As your score",0,1);
+    lcd.printString("increase, so ",0,2);
+    lcd.printString("does the game ",0,3);
+    lcd.printString("difficulty ",10,4);
+    }
+    
+    else if (current_page == 6){
+    lcd.printString("Good Luck!!! ",0,3);
+    }
+    
     char buffer[1];
     sprintf(buffer,"page #%i", current_page);
     lcd.printString(buffer,20,0);  
@@ -65,6 +89,7 @@
     lcd.printString("Push B to Exit",0,5);
     
     if (gamepad.check_event(gamepad.B_PRESSED)){
+        gamepad.check_event(gamepad.B_PRESSED);
         back_to_menu = true; 
     }
     return back_to_menu;