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.
Dependencies: mbed
Diff: Game/Game.h
- Revision:
- 5:e6cb6fda5b37
- Child:
- 6:c4d49375be7b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Game/Game.h Tue Apr 23 16:03:34 2019 +0000 @@ -0,0 +1,31 @@ +#ifndef GAME_H +#define GAME_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" +#include "Smiley.h" +#include "Maze.h" + +class Game{ + +public: + + Game(); + ~Game(); + void init(); + void dirmag(Gamepad &pad); + void drawSprite(N5110 &lcd); + void movement(Gamepad &pad); + +private: + + Smiley smiley; + Maze maze; + Direction dir; + float mag; + int x; + int y; +}; + +#endif \ No newline at end of file