Dependencies:   MMA8452 N5110 PowerControl beep mbed

Revision:
4:c141e252d786
Parent:
3:1974db5993ef
Child:
5:c0a58a6916f2
--- a/GameFSM.h	Mon May 04 15:55:32 2015 +0000
+++ b/GameFSM.h	Mon May 04 21:14:23 2015 +0000
@@ -66,7 +66,7 @@
             lcd.clear();
             menu.highscore();
             char HScore[5];
-            sprintf(HScore," %d",game.score);
+            sprintf(HScore," %d",game.scoArr[0]);
             lcd.printString(HScore,32,3);
             if (BuBFlag) {
                 resetButton();
@@ -116,7 +116,7 @@
             state = 10; //Go to state 10: Your score menu
             break;
 
-        case 6: //Sub state 2: GAME SCREEN - Normal mode
+        case 6: //Sub state 2: GAME SCREEN sector - Normal mode
             lcd.clear();
             timer.attach(&timerExpired,0.5);
             gatimer.attach(&gatimerExpired,0.2); //Update time for Normal mode is 0.2s
@@ -131,7 +131,7 @@
             state = 10; //Go to state 10: Your score menu
             break;
 
-        case 7: //Sub state 3: GAME SCREEN menu - Hard mode
+        case 7: //Sub state 3: GAME SCREEN sector - Hard mode
             lcd.clear();
             timer.attach(&timerExpired,0.5);
             gatimer.attach(&gatimerExpired,0.4); //Update time for Hard mode is 0.4s
@@ -146,7 +146,7 @@
             state = 10; //Go to state 10: Your score menu
             break;
 
-        case 8: //Sub state 2: GAME MODE menu - Cursor at Normal line
+        case 8: //Sub state 2: GAME MODE sector - Cursor at Normal line
             lcd.clear();
             menu.gameset();
             lcd.drawCircle(17,27,2,1);
@@ -168,7 +168,7 @@
             }
             break;
 
-        case 9: //Sub state 3: GAME MODE menu - Cursor at Hard line
+        case 9: //Sub state 3: GAME MODE sector - Cursor at Hard line
             lcd.clear();
             menu.gameset();
             lcd.drawCircle(23,35,2,1);
@@ -186,7 +186,7 @@
             }
             break;
 
-        case 10: //Main state 5: YOUR SCORE menu - Cursor at Main menu line
+        case 10: //Main state 5: YOUR SCORE sector - Cursor at Main menu line
             lcd.clear();
             menu.yourscore();
             lcd.drawCircle(8,27,2,1);
@@ -203,7 +203,7 @@
             }
             break;
 
-        case 11: //Main state 6: YOUR SCORE menu - Cursor at Reset line
+        case 11: //Main state 6: YOUR SCORE sector - Cursor at Reset line
             lcd.clear();
             menu.yourscore();
             lcd.drawCircle(8,35,2,1);