Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
81:4c1641e10dcd
Parent:
79:35cb65c52d25
Child:
83:329da564799a
--- a/GameObjects/Snake/Snake.cpp	Mon May 06 08:00:56 2019 +0000
+++ b/GameObjects/Snake/Snake.cpp	Mon May 06 09:05:09 2019 +0000
@@ -25,19 +25,19 @@
     }
 
     _speed = speed;// change this according to the options selected
-    m = 0; //Variable used to allow a starting location for the player.
+    reset = 0; //Variable used to allow a starting location for the player.
 }
 
 
 void Snake::draw(N5110 &lcd, int length)
 {
     _length = length;
-    if(m == 0) {
+    if(reset == 0) {
 
         Vector2D p = {WIDTH/2, HEIGHT - 3};  //Spawns player sprite near the middle of the screen.
         Snake::set_pos(p);
 
-        m = m+1;
+        reset = reset+1;
     }
     //printf("SPRITE %d %d \n", _x[0], _y[0]);