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: SpaceInvadersEngine/SpaceInvadersEngine.h
- Revision:
- 12:45b1249b3d9a
- Parent:
- 8:eec0d7fc365f
- Child:
- 13:9d6ee753eca6
--- a/SpaceInvadersEngine/SpaceInvadersEngine.h Mon Apr 15 12:04:25 2019 +0000
+++ b/SpaceInvadersEngine/SpaceInvadersEngine.h Mon Apr 15 14:36:07 2019 +0000
@@ -9,7 +9,11 @@
// gap from edge of screen
#define GAP 2
-
+extern int space_ship_width;
+extern int space_ship_height;
+extern int bullet_size;
+extern int alien_size;
+extern int speed;
class SpaceInvadersEngine
{
@@ -18,7 +22,7 @@
SpaceInvadersEngine();
~SpaceInvadersEngine();
- void init(int space_ship_width,int space_ship_height,int bullet_size, int alien_size, int speed);
+ void init(int space_ship_width ,int space_ship_height,int bullet_size, int alien_size, int speed);
void read_input(Gamepad &pad);
void update(Gamepad &pad);
void draw(N5110 &lcd);