Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
16:7b474f873683
Parent:
11:d6ceff1ff6d7
Child:
25:e827f1a8fadc
--- a/main.cpp	Thu Apr 04 18:50:40 2019 +0000
+++ b/main.cpp	Fri Apr 05 05:46:11 2019 +0000
@@ -36,7 +36,7 @@
 void refresh_game();
 
 //Constants//
-int fps = 20;  // frames per second
+int fps = 40;  // frames per second
 
 ///////////// MAIN ////////////////
 int main()
@@ -47,6 +47,7 @@
     _start.instruct(lcd, pad);
     _start.info(lcd, pad);
     _start.menu_screen1(lcd, pad);
+    fps = _start.fps;
      // start the game
     refresh_game();
     wait(1.0f/fps);