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: SpaceInvaderEngine/SpaceInvaderEngine.h
- Revision:
- 9:8e695df3cc36
- Parent:
- 8:86cb9a9f8a73
- Child:
- 10:9189419fda68
--- a/SpaceInvaderEngine/SpaceInvaderEngine.h Thu Mar 26 15:24:49 2020 +0000 +++ b/SpaceInvaderEngine/SpaceInvaderEngine.h Fri Mar 27 11:55:53 2020 +0000 @@ -6,7 +6,7 @@ #include "Gamepad.h" // #include "BulletS.h" #include "Ship.h" -// #include "Alien.h" +#include "Alien.h" #define BORDER 2 @@ -16,7 +16,7 @@ public: SpaceInvaderEngine(); ~SpaceInvaderEngine(); - void init(int ship_height, int ship_width); + void init(int ship_height, int ship_width, int alien_size); void read_input(Gamepad &pad); void update(Gamepad &pad); void render(N5110 &lcd); @@ -25,16 +25,16 @@ // void check_alien_collision(Gamepad &pad); -// Alien A1; + Alien A1; Ship S1; // BulletS BS1; int S1_height; int S1_width; -// int A1_size; + int A1_size; // int BS1_size; -// int A1y; + int A1y; // int BS1x; Direction D;