Game codes for Pokemon Academy Yiu Fai Kwok - 201198802 I have read the University Regulations on Plagiarism and state that the work covered by this declaration is my own and does not contain any unacknowledged work from other sources.

Dependencies:   mbed FXOS8700CQ mbed-rtos

Revision:
23:4a070960817a
Parent:
22:f8f36e88b2ca
Child:
31:0d2c19a285f6
--- a/Exam/Exam.cpp	Sun Apr 28 18:58:10 2019 +0000
+++ b/Exam/Exam.cpp	Mon Apr 29 20:45:04 2019 +0000
@@ -54,7 +54,6 @@
         {0,1,1,1,1,1,0},
         {1,1,1,1,1,1,1},
     };
-    bool finished = false;
     
     while(pad.check_event(Gamepad::START_PRESSED) == false){
         //music.gym(pad, !finished);
@@ -228,7 +227,7 @@
                 lcd.printString("COMPLETE",0,1);
                 lcd.printString("PRESS START",0,5);
                 lcd.refresh();
-                if(pad.check_event(Gamepad::START_PRESSED) == true) {finished = true; pad.init_input();}
+                if(pad.check_event(Gamepad::START_PRESSED) == true) {pad.init_input();}
                 wait(1.0f/fps);
             break;
         }
@@ -254,7 +253,6 @@
         {0,1,1,1,1,1,0},
         {1,1,1,1,1,1,1},
     };
-    bool finished = false;
     
     while(pad.check_event(Gamepad::START_PRESSED) == false){
         //music.gym(pad, !finished);
@@ -431,7 +429,7 @@
                 lcd.printString("COMPLETE",0,1);
                 lcd.printString("PRESS START",0,5);
                 lcd.refresh();
-                if(pad.check_event(Gamepad::START_PRESSED) == true) {finished = true; pad.init_input();}
+                if(pad.check_event(Gamepad::START_PRESSED) == true) {pad.init_input();}
                 wait(1.0f/fps);
             break;
         }
@@ -457,7 +455,6 @@
         {0,1,1,1,1,1,0},
         {1,1,1,1,1,1,1},
     };
-    bool finished = false;
     
     while(pad.check_event(Gamepad::START_PRESSED) == false){
         //music.gym(pad, !finished);
@@ -615,7 +612,7 @@
                 lcd.printString("COMPLETE",0,1);
                 lcd.printString("PRESS START",0,5);
                 lcd.refresh();
-                if(pad.check_event(Gamepad::START_PRESSED) == true) {finished = true; pad.init_input();}
+                if(pad.check_event(Gamepad::START_PRESSED) == true) {pad.init_input();}
                 wait(1.0f/fps);
             break;
         }