Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Engine/Engine.h
- Revision:
- 5:a3a9e0417e04
- Parent:
- 3:6253a2d374fa
- Child:
- 6:ed553fd191c2
--- a/Engine/Engine.h Sun Apr 29 14:59:14 2018 +0000 +++ b/Engine/Engine.h Sun Apr 29 18:03:45 2018 +0000 @@ -2,6 +2,7 @@ #include "N5110.h" #include "Gamepad.h" #include "Snek.h" +#include "Food.h" class Engine { @@ -14,10 +15,16 @@ void read_input(Gamepad &pad); void update(Gamepad &pad); void draw(N5110 &lcd); - + void changeScore(); + string convertString(int a); + void gameOver(N5110 &lcd); + private: - + + int _score; Direction _d; int _grid[22][22]; Snek _solid; + Food _noodles; + bool _gameOver; }; \ No newline at end of file