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:
- 7:577f791134e5
- Parent:
- 6:0ad91977f14f
- Child:
- 8:ad3857f100fe
--- a/main.cpp Tue Apr 25 10:14:18 2017 +0000
+++ b/main.cpp Mon May 01 13:03:28 2017 +0000
@@ -3,10 +3,9 @@
#include "N5110.h"
#include "Engine.h"
-#define FRIENDLY_WIDTH 6
-#define FRIENDLY_HEIGHT 6
-#define SHIP_SIZE 1
-#define SHIP_SPEED 3
+#define STAGE_ONE 2
+#define STAGE_TWO 3
+#define STAGE_THREE 4
struct UserInput {
Direction d;
@@ -36,7 +35,7 @@
engine.checker(lcd, pad);
engine.update(lcd, pad);
generate();
- engine.shoot(lcd, pad, SHIP_SPEED);
+ engine.shoot(lcd, pad);
lcd.refresh();
wait(1.0f/fps);
}
@@ -46,7 +45,7 @@
{
lcd.init();
pad.init();
- engine.init(FRIENDLY_WIDTH,FRIENDLY_HEIGHT,SHIP_SIZE,SHIP_SPEED,lcd,pad);
+ engine.init(STAGE_ONE, lcd, pad);
}
void generate()