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.cpp
- Revision:
- 5:e6cb6fda5b37
- Child:
- 7:fa8629d7bb6e
- Child:
- 9:b272864b8355
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Game/Game.cpp Tue Apr 23 16:03:34 2019 +0000 @@ -0,0 +1,27 @@ +#include "Game.h" + +Game::Game(){ + +} + +Game::~Game(){ + +} + +void Game::init(){ + smiley.init(x,y); +} + +void Game::dirmag(Gamepad &pad){ + dir = pad.get_direction(); + mag = pad.get_mag(); +} + +void Game::drawSprite(N5110 &lcd){ + maze.drawSprite(lcd); + smiley.drawSprite(lcd); +} + +void Game::movement(Gamepad &pad){ + smiley.movement(dir,mag); +} \ No newline at end of file