Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
12:1e601b176437
Parent:
10:751bd953fa27
Child:
13:9785f2404045
--- a/SnakevsBlock/SnakevsBlock.h	Sat Mar 30 21:42:28 2019 +0000
+++ b/SnakevsBlock/SnakevsBlock.h	Tue Apr 02 17:06:22 2019 +0000
@@ -49,6 +49,11 @@
     int snakey;
     int length;
     int foodbuff;  //this makes food 1,2,and 3 come at seperate times
+    int blocknum;
+    int srn;
+    int send; //makes sure that the block number is only updated when send is activated.
+    //int memory; //this remembers the previous y pos of the block.
+    //int blocknumt; // this is also a memeory number to make sure length doesnt't keep decreasing by itself
     
     private:
     
@@ -68,5 +73,10 @@
     */
     void CheckSnakeFoodCollision(Gamepad &pad);
     
+    /** Check for Snake and Block collision
+    *
+    *   This function checks if the Snake has come into contact with any Block.
+    */
+    void CheckSnakeBlockCollision(Gamepad &pad);
 };
 #endif
\ No newline at end of file