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: Sprite/Sprite.cpp
- Revision:
- 3:b34685dbdb8d
- Parent:
- 2:b62e8be35a5d
- Child:
- 4:afbf3dd71403
diff -r b62e8be35a5d -r b34685dbdb8d Sprite/Sprite.cpp
--- a/Sprite/Sprite.cpp Tue Apr 02 10:45:44 2019 +0000
+++ b/Sprite/Sprite.cpp Tue Apr 02 12:40:31 2019 +0000
@@ -20,9 +20,9 @@
_pos = pos;
}
-void Sprite::update(Gamepad &pad)
+void Sprite::update()
{
-
+ _pos.y += GRAVITY;
}
void Sprite::render(N5110 &lcd) {