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: Enemy1 Enemy2 Enemy3 Enemy4 Enemy5 Enemy6 Engine Friendly Gamepad N5110 Rocket Stats mbed
Diff: main.cpp
- Revision:
- 8:ad3857f100fe
- Parent:
- 7:577f791134e5
- Child:
- 9:51a357a1178c
--- a/main.cpp Mon May 01 13:03:28 2017 +0000
+++ b/main.cpp Tue May 02 22:14:51 2017 +0000
@@ -32,10 +32,11 @@
while (1) {
engine.read_input(pad);
- engine.checker(lcd, pad);
- engine.update(lcd, pad);
+ engine.check_all(lcd, pad);
+ engine.update_all(lcd, pad);
generate();
- engine.shoot(lcd, pad);
+ engine.shoot_rocket(lcd, pad);
+ engine.shoot_star(lcd, pad);
lcd.refresh();
wait(1.0f/fps);
}
@@ -51,13 +52,15 @@
void generate()
{
lcd.clear();
- engine.draw(lcd); // grid, health
+ engine.draw_all(lcd); // grid, health
lcd.refresh();
}
void welcome() {
+ lcd.printString(" NEMESIS ",0,2);
lcd.printString(" Press Start! ",0,4);
+
lcd.refresh();
while ( pad.check_event(Gamepad::START_PRESSED) == false) {