Ahmed Adamjee
/
SnakeVSBlock
Snake vs Block Game to be run upon K64F.
Diff: GameEngine/SnakevsBlock/SnakevsBlock.cpp
- Revision:
- 55:df0825049171
- Parent:
- 54:20abd16c7d74
- Child:
- 56:142e9fdb77a8
--- a/GameEngine/SnakevsBlock/SnakevsBlock.cpp Fri Apr 26 19:32:57 2019 +0000 +++ b/GameEngine/SnakevsBlock/SnakevsBlock.cpp Sat Apr 27 18:56:30 2019 +0000 @@ -77,7 +77,7 @@ } void SnakevsBlock::draw(N5110 &lcd, Gamepad &pad) { - _length = _l._getLength(); + _length = _l._getLength(); //saves the snake length into a private variable. _s.draw(lcd, _length, level); //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, blockbuff); //Draws the first food.