Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
39:210ac915e0a0
Parent:
38:30e4e6191762
Child:
40:1debed7ec01c
--- a/main.cpp	Mon Apr 22 04:24:38 2019 +0000
+++ b/main.cpp	Mon Apr 22 05:28:37 2019 +0000
@@ -41,7 +41,7 @@
 
 //Constants//
 int fps = 40;  // frames per second
-int gm = 1; //selects between joystick and motion control.
+int g_mode = 1; //selects between joystick and motion control.
 
 ///////////// MAIN ////////////////
 int main()
@@ -53,7 +53,7 @@
     while(1)  { //This loop is created for Play/Continue configuration
         _start.main_menu(lcd, pad, sd);
         fps = _start.fps;
-        gm = _start.gm;
+        g_mode = _start.g_mode;
          // start the game
         refresh_game();
         
@@ -62,7 +62,7 @@
         // snakeVSblock - detect input respect to the menu options, and update data and refresh screen
         while (1) {
             
-            game.read_input(pad, device, gm);
+            game.read_input(pad, device, g_mode);
             int back = game.update(pad, sd);
             refresh_game();