Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
32:3a3bdeffdf62
Parent:
25:e827f1a8fadc
Child:
33:249cf423fb18
--- a/main.cpp	Mon Apr 15 06:27:23 2019 +0000
+++ b/main.cpp	Mon Apr 15 13:58:09 2019 +0000
@@ -28,7 +28,7 @@
 FXOS8700CQ device(I2C_SDA,I2C_SCL);
 StartScreen _start;
 SnakevsBlock game;
-AnalogIn noisy(PTB0);
+AnalogIn noisy(PTB0); //This creates a random noise which I can use to seed the random numbers.
 
 ///////////// prototypes //////////////
 void init();
@@ -46,7 +46,7 @@
     _start.screen_saver(lcd, pad);
     _start.instruct(lcd, pad);
     _start.info(lcd, pad);
-    while(1)  {
+    while(1)  { //This loop is created for Play/Continue configuration
         _start.menu_screen1(lcd, pad);
         fps = _start.fps;
          // start the game