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
Game/Game.h
- Committer:
- S_Tingle
- Date:
- 2019-04-11
- Revision:
- 3:72e0f4d267ed
- Child:
- 4:999ab7216827
File content as of revision 3:72e0f4d267ed:
#ifndef GAME_H #define GAME_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Smiley.h" #include "Platform.h" class Game { public: Game(); ~Game(); void init(int momentum); void read_input(Gamepad &pad); void drawSprite(N5110 &lcd); void movement(Gamepad &pad); private: Smiley smiley; Platform platform; int momen; Direction dir; float mag; }; #endif