![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Owen Cavender 201159294
Dependencies: mbed
Diff: GameEngine.h
- Revision:
- 1:897160a1a3ae
- Child:
- 2:ffbfd3f53ee2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GameEngine.h Tue May 26 12:17:59 2020 +0000 @@ -0,0 +1,37 @@ +#ifndef GAMEENGINE_H +#define GAMEENGINE_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" + + + + +class GameEngine +{ + + +public: + GameEngine(); + ~GameEngine(); + + + void init(int shx, int shy, int apx, int apy); + void set_Snakehead(Vector2D Snakehead); + void set_Applepos(N5110 &lcd); + Vector2D get_Snakehead(); + Vector2D get_Applepos(); +//void clear_Applepos(); + + +private: + int _shx; + int _shy; + int _apx; + int _apy; + +}; + + +#endif