Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
41:4edac50f010d
Parent:
37:ee47699915b8
Child:
47:b448ffd073e7
--- a/Blocks/Blocks.h	Mon Apr 22 07:10:52 2019 +0000
+++ b/Blocks/Blocks.h	Tue Apr 23 12:25:49 2019 +0000
@@ -21,7 +21,7 @@
     *
     *   This function draws the Blocks onto the screen.
     */
-    int draw(N5110 &lcd, int length, int blockgap);
+    void draw(N5110 &lcd, int length, int blockgap);
     
     /** Update
     *
@@ -49,7 +49,6 @@
     int state;
     int times;
     int pos;
-    int blockdrop;
     int caseselect[5];
     int i;
     int send;
@@ -58,6 +57,7 @@
     
 
     private:
+    int _length;
     int k;
     int _bx;  //block x
     int _by;  //block y