Library containing the Game Engine
Diff: GameEngine.h
- Revision:
- 0:5997fa876927
- Child:
- 1:13a97de95e46
diff -r 000000000000 -r 5997fa876927 GameEngine.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GameEngine.h Mon Apr 24 11:06:49 2017 +0000 @@ -0,0 +1,28 @@ +#ifndef GAMEENGINE_H +#define GAMEENGINE_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" +#include "Player.h" + +class GameEngine +{ + public: + GameEngine(); + ~GameEngine(); + + void init( ); + void read_input(Gamepad &pad); + void update(Gamepad &pad); + void draw(N5110 &lcd); + + private: + + Player _p; + int _speed; + Direction _d; + float _mag; + +}; +#endif \ No newline at end of file