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: Game/Game.h
- Revision:
- 1:37802772843e
- Child:
- 2:b62e8be35a5d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Game/Game.h Mon Mar 25 10:48:23 2019 +0000 @@ -0,0 +1,24 @@ +#ifndef GAME_H +#define GAME_H + +/*Game Class*/ +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" +#include "Sprite.h" + +class Game { + +public: + Game(); + ~Game(); + void read_input(Gamepad &pad); + void update(Gamepad &pad); + void draw(N5110 lcd); + +private: + Direction _d; + float _mag; + Sprite _player; +}; +#endif \ No newline at end of file