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:
- 4:999ab7216827
- Parent:
- 3:72e0f4d267ed
--- a/Game/Game.cpp Thu Apr 11 14:53:08 2019 +0000
+++ b/Game/Game.cpp Sat Apr 13 16:45:30 2019 +0000
@@ -10,21 +10,19 @@
}
-void Game::init(int momentum) {
- momen = momentum;
+void Game::init() {
+
}
void Game::read_input(Gamepad &pad) {
dir = pad.get_direction();
- mag = pad.get_mag();
}
void Game::drawSprite(N5110 &lcd) {
smiley.drawSprite(lcd);
- platform.drawSprite(lcd);
}
void Game::movement(Gamepad &pad) {
- smiley.movement(dir,mag);
+ smiley.movement(dir);
}
\ No newline at end of file