Rex Raj / Mbed 2 deprecated el17rrrs

Dependencies:   mbed Gamepad N5110 mbed-rtos

Revision:
6:1fcfd331c047
Parent:
5:016a7315b75d
Child:
7:574c66ebd8b0
--- a/Instruction/Instruction.cpp	Mon May 06 18:29:49 2019 +0000
+++ b/Instruction/Instruction.cpp	Wed May 08 10:03:24 2019 +0000
@@ -45,12 +45,12 @@
 {0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0},
 {0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0},
 {0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0},
-{0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0},
-{0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
@@ -62,6 +62,25 @@
 
 };
 
+int right_arrow [5][3] = {
+    
+    {1,0,0},
+    {1,1,0},
+    {1,1,1},
+    {1,1,0},
+    {1,0,0},
+
+};    
+
+int left_arrow [5][3] = {
+    
+    {0,0,1},
+    {0,1,1},
+    {1,1,1},
+    {0,1,1},
+    {0,0,1},
+    
+};
 //sprite of the game rules page
 int game_rules [8] [74] = {
 
@@ -190,11 +209,11 @@
 {0,0,1,0,0,1,0,1,0,0,0,0,0,1,0,0,1,0,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,0,1,1,1,1,1,0,1,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0},
 {0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0},
-{0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,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0,0,0,0,0,0,0,0,0,0,0,0,0},
@@ -419,7 +438,7 @@
 {1,1,1,1,1,0,1,1,1,1,1,0,0,0,1,1,1,1,1,0,1,1,1,1,1,0,1,0,0,0,0,0,1,1,1,1,1,0,1,1,1,1,1},
 {0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,1,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0},
 {0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,1,1,1,1,0,0,0,1,0,0,0,1,0,1,0,0,0,1,1,1,1,1,0,0,0,1,0,0},
-{0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,0,0,1,0,0},
+{0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,1,1,1,0,0,1,0,1,0,0,0,0,0,1,0,0},
 {0,0,1,0,0,0,1,1,1,1,1,0,0,0,1,1,1,1,1,0,0,0,1,0,0,0,1,0,0,0,1,0,1,0,0,1,0,0,0,0,1,0,0},
 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0},
 
@@ -445,66 +464,241 @@
 
 };
 
-enum States { Life1,Life2,Life3,Life4,Life5,Life6,Life7,Life8,Life9,Life10,Life11,Life12 }; // enum state for instruction and game page
+int move [27][62] = {
+{1,0,0,0,1,0,1,1,1,1,1,0,1,1,1,1,1,0,0,1,1,1,1,1,0,1,1,1,1,1,0,1,0,0,0,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,0,1,1,1,1,1,0,1,0,0,1,1},
+{1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,1,1,0},
+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1,0,0,1,1,0,1,1,1,1,1,0,1,0,0,1,0},
+
+};
+
+enum States { Life0,Life1,Life2,Life3,Life4,Life5,Life6,Life7,Life8,Life9,Life10,Life11,Life12 }; // enum state for instruction and game page
+
+void Instruction::rules(N5110 &lcd,Gamepad &pad){     
 
 int fps = 5; // set the frames per second to 5
-States currentInstruction = Life1; // current instruction is Life 1
+States currentInstruction = Life0; // current instruction is Life 1
         
      while(currentInstruction != Life12) { 
         switch(currentInstruction){
+              case Life0:
+              lcd.clear();
+              lcd.drawSprite(12,3,27,62,(int*)move);
+              lcd.drawSprite(20,33,14,43,(int*)press_start);
+              lcd.refresh();
+               if(pad.check_event(Gamepad::A_PRESSED) ==  true){ 
+                currentInstruction = Life1;    // sets current instruction = Life1 if start button is pressed
+                }  
+              break;
               case Life1:
                 // draws the first instrcution 
                 lcd.clear();
                 lcd.drawSprite(1,0,47,83 ,(int *)instruction1);
-                lcd.printString(" Destroy the",4,1);
-                lcd.printString(" enemies'",4,2);
-                lcd.printString(" spacecraft",4,3);
-                lcd.drawSprite(6,4,37,1,(int *)instruction_side);
+                lcd.drawSprite(11,11,26,63 ,(int *)objective);
+                 lcd.drawSprite(73,18,5,3 ,(int *)right_arrow);
+                //lcd.drawSprite(6,4,37,1,(int *)instruction_side);
                 lcd.refresh();
-                if (pad.check_event(Gamepad::A_PRESSED) == true){
-                currentInstruction = Life2;
-                }
+                if(pad.get_direction() ==  E){ 
+                currentInstruction = Life2;    // sets current instruction = Life2 if joystick moves to the right
+                }  
+                wait(1.0f/fps);
               break;
               case  Life2:
                 lcd.clear();
                 // draws the second instrcution
                 lcd.drawSprite(1,0,47,83 ,(int *)instruction1);
-                lcd.printString(" There are",4,1);
-                lcd.printString(" three'",4,2);
-                lcd.printString(" stages",4,3);
-                lcd.drawSprite(6,4,37,1,(int *)instruction_side);
+                lcd.drawSprite(12,11,27,60 ,(int *)three_mission);
+                lcd.drawSprite(73,18,5,3 ,(int *)right_arrow);
+                lcd.drawSprite(8,18,5,3 ,(int *)left_arrow);
+               // lcd.drawSprite(6,4,37,1,(int *)instruction_side);
                 lcd.refresh();
-                if (pad.check_event(Gamepad::A_PRESSED) == true){
-                currentInstruction = Life3;
+                 if(pad.get_direction() ==  W){ 
+                currentInstruction = Life1;    // sets current instruction = Life1 if joystick moves to the left
                 }
+                if(pad.get_direction() ==  E){ 
+                currentInstruction = Life3;    // sets current instruction = Life3 if joystick moves to the right
+                } 
+                wait(1.0f/fps); 
               break;
               case  Life3:
                 // draws the third instrcution
                 lcd.clear();
                 lcd.drawSprite(1,0,47,83 ,(int *)instruction1);
-                lcd.printString(" Each with",4,1);
-                lcd.printString(" different'",4,2);
-                lcd.printString(" difficulty",4,3);
+                lcd.drawSprite(16,11,26,53 ,(int *)difficulty);
+                lcd.drawSprite(73,18,5,3 ,(int *)right_arrow);
+                lcd.drawSprite(8,18,5,3 ,(int *)left_arrow);
                 lcd.drawSprite(6,4,37,1,(int *)instruction_side);
                 lcd.refresh(); 
-                if (pad.check_event(Gamepad::A_PRESSED) == true){
-                currentInstruction = Life4;
+                if(pad.get_direction() ==  W){ 
+                currentInstruction = Life2;    // sets current instruction = Life2 if joystick moves to the left
                 }
+                if(pad.get_direction() ==  E){ 
+                currentInstruction = Life4;    // sets current instruction = Life4 if joystick moves to the right
+                }  
+                wait(1.0f/fps);
               break;
               case  Life4:
                 // draws the fourth instrcution
                 lcd.clear();
                 lcd.drawSprite(1,0,47,83 ,(int *)instruction1);
-                lcd.printString(" Your goal",4,1);
-                lcd.printString(" is to kill'",4,2);
-                lcd.printString(" all three",4,3);
+                lcd.drawSprite(8,11,26,68 ,(int *)sstriker);
+                 lcd.drawSprite(73,18,5,3 ,(int *)right_arrow);
+                lcd.drawSprite(8,18,5,3 ,(int *)left_arrow);
                 lcd.drawSprite(6,4,37,1,(int *)instruction_side);
                 lcd.refresh(); 
-                if (pad.check_event(Gamepad::A_PRESSED) == true){
-                currentInstruction = Life5;
+                 if(pad.get_direction() ==  W){ 
+                currentInstruction = Life3;    // sets current instruction = Life3 if joystick moves to the left
                 }
+                if(pad.get_direction() ==  E){ 
+                currentInstruction = Life5;    // sets current instruction = Life5 if joystick moves to the right
+                }  
+                wait(1.0f/fps);
               break;
               case Life5:
                 // draws the first and second game rules
@@ -513,13 +707,16 @@
                 lcd.drawSprite(2,2,1,82 ,(int *)game_top);
                 lcd.drawSprite(3,1,48,1 ,(int *)game_side);
                 lcd.drawSprite(2,46,1,82 ,(int *)game_top);
-                lcd.drawSprite(81,1,48,1 ,(int *)game_side);
+                lcd.drawSprite(82,1,48,1 ,(int *)game_side);
                 lcd.drawSprite(6,16,13,75 ,(int *)rule_one);
                 lcd.drawSprite(7,32,13,69 ,(int *)rule_two);
                 lcd.refresh(); 
+                 if(pad.get_direction() ==  W){ 
+                currentInstruction = Life4;    // sets current instruction = Life4if joystick moves to the left
+                }
                 if(pad.get_direction() ==  E){ 
-                currentInstruction = Life6;    // sets current instruction = Life6 if joystick moves to the right
-                } 
+                currentInstruction = Life6;    // sets current instruction = Life6if joystick moves to the right
+                }  
                 wait(1.0f/fps);
               break;   
               case Life6:
@@ -529,14 +726,14 @@
                 lcd.drawSprite(2,2,1,82 ,(int *)game_top);
                 lcd.drawSprite(3,1,48,1 ,(int *)game_side);
                 lcd.drawSprite(5,15,31,76 ,(int *)rule_three);
-                lcd.drawSprite(81,1,48,1 ,(int *)game_side);
+                lcd.drawSprite(82,1,48,1 ,(int *)game_side);
                 lcd.drawSprite(2,46,1,82 ,(int *)game_top);
                 lcd.refresh(); 
                 if(pad.get_direction() ==  W){ 
-                currentInstruction = Life5;    // sets current instruction = Life5if joystick moves to the left
+                currentInstruction = Life5;    // sets current instruction = Life5 if joystick moves to the left
                 }
                 if(pad.get_direction() ==  E){ 
-                currentInstruction = Life7;    // sets current instruction = Life7if joystick moves to the right
+                currentInstruction = Life7;    // sets current instruction = Life7 if joystick moves to the right
                 }  
                 wait(1.0f/fps);
               break;
@@ -548,13 +745,13 @@
                 lcd.drawSprite(3,1,48,1 ,(int *)game_side);
                 lcd.drawSprite(5,15,31,76 ,(int *)rule_four);
                 lcd.drawSprite(2,46,1,82 ,(int *)game_top);
-                lcd.drawSprite(81,1,48,1 ,(int *)game_side);
+                lcd.drawSprite(82,1,48,1 ,(int *)game_side);
                 lcd.refresh();
                 if(pad.get_direction() ==  W){ 
                 currentInstruction = Life6;    // sets current instruction = Life6 if joystick moves to the left
                 }
                 if(pad.get_direction() ==  E){ 
-                currentInstruction = Life8;    // sets current instruction = Life8if joystick moves to the right
+                currentInstruction = Life8;    // sets current instruction = Life8 if joystick moves to the right
                 } 
                 wait(1.0f/fps);
               break;
@@ -566,7 +763,7 @@
                 lcd.drawSprite(3,1,48,1 ,(int *)game_side);
                 lcd.drawSprite(5,15,31,76 ,(int *)rule_five);
                 lcd.drawSprite(2,46,1,82 ,(int *)game_top);
-                lcd.drawSprite(81,1,48,1 ,(int *)game_side);
+                lcd.drawSprite(82,1,48,1 ,(int *)game_side);
                 lcd.refresh();
                 if(pad.get_direction() ==  W){ 
                 currentInstruction = Life7;    // sets current instruction = Life7 if joystick moves to the left
@@ -584,7 +781,7 @@
                 lcd.drawSprite(3,1,48,1 ,(int *)game_side);
                 lcd.drawSprite(5,15,31,76 ,(int *)rule_six);
                 lcd.drawSprite(2,46,1,82 ,(int *)game_top);
-                lcd.drawSprite(81,1,48,1 ,(int *)game_side);
+                lcd.drawSprite(82,1,48,1 ,(int *)game_side);
                 lcd.refresh(); 
                 if(pad.get_direction() ==  W){ 
                 currentInstruction = Life8;    // sets current instruction = Life8 if joystick moves to the left
@@ -602,7 +799,7 @@
                 lcd.drawSprite(3,1,48,1 ,(int *)game_side);
                 lcd.drawSprite(5,15,13,76 ,(int *)rule_six_two);
                 lcd.drawSprite(2,46,1,82 ,(int *)game_top);
-                lcd.drawSprite(81,1,48,1 ,(int *)game_side);
+                lcd.drawSprite(82,1,48,1 ,(int *)game_side);
                 lcd.refresh();
                 if(pad.get_direction() ==  W){ 
                 currentInstruction = Life9;    // sets current instruction = Life9 if joystick moves to the left
@@ -620,7 +817,7 @@
                     lcd.drawSprite(2,2,1,82 ,(int *)game_top);
                     lcd.drawSprite(3,1,48,1 ,(int *)game_side);
                     lcd.drawSprite(2,46,1,82 ,(int *)game_top);
-                    lcd.drawSprite(81,1,48,1 ,(int *)game_side);
+                    lcd.drawSprite(82,1,48,1 ,(int *)game_side);
                     lcd.drawSprite(4,15,14,76 ,(int *)goodluck);
                     lcd.drawSprite(14,31,14,43 ,(int *)press_start);
                     lcd.drawSprite(59,31,14,22 ,(int *)hat);
@@ -631,7 +828,7 @@
                     lcd.drawSprite(2,2,1,82 ,(int *)game_top);
                     lcd.drawSprite(3,1,48,1 ,(int *)game_side);
                     lcd.drawSprite(2,46,1,82 ,(int *)game_top);
-                    lcd.drawSprite(81,1,48,1 ,(int *)game_side);
+                    lcd.drawSprite(82,1,48,1 ,(int *)game_side);
                     lcd.drawSprite(4,15,14,76 ,(int *)goodluck);
                     lcd.drawSprite(14,31,14,43 ,(int *)press_start);
                     lcd.refresh();