Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
17:54e13faeaf64
Parent:
16:7b474f873683
Child:
18:b391caa5754c
--- a/SnakevsBlock/SnakevsBlock.cpp	Fri Apr 05 05:46:11 2019 +0000
+++ b/SnakevsBlock/SnakevsBlock.cpp	Fri Apr 05 06:28:13 2019 +0000
@@ -30,7 +30,7 @@
 
 void SnakevsBlock::draw(N5110 &lcd, Gamepad &pad)
 {
-    _s.draw(pad, lcd, length); //Draws the Snake.     //Make these snake buffs relative to the snake drops which in turn relate to the game speed
+    length = _s.draw(pad, lcd, length); //Draws the Snake.     //Make these snake buffs relative to the snake drops which in turn relate to the game speed
     if(foodbuff >=0)  {
         _f.draw(lcd); //Draws the first food.
         if(foodbuff >=50)  {