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: GameEngine/GameEngine.cpp
- Revision:
- 4:8c6723798227
- Parent:
- 3:489437d4ebd7
- Child:
- 5:b230e79d36d6
--- a/GameEngine/GameEngine.cpp Wed Apr 18 18:05:14 2018 +0000
+++ b/GameEngine/GameEngine.cpp Thu Apr 19 16:54:10 2018 +0000
@@ -13,6 +13,7 @@
void GameEngine::init()
{
_rocket.init();
+ _asteroid.init(3);
}
void GameEngine::read_input(Gamepad &pad)
@@ -25,6 +26,7 @@
{
// draw the game elements in the LCD
_rocket.draw(lcd);
+ _asteroid.draw(lcd);
}