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:
- 12:be491ab6e742
- Parent:
- 11:c174d84e4866
- Child:
- 14:e88bcf5c0887
--- a/SpaceInvaderEngine/SpaceInvaderEngine.h Wed Apr 01 11:23:25 2020 +0000 +++ b/SpaceInvaderEngine/SpaceInvaderEngine.h Wed Apr 01 14:40:29 2020 +0000 @@ -6,7 +6,7 @@ #include "Gamepad.h" #include "BulletS.h" #include "Ship.h" -#include "Alien.h" +#include "Armada.h" #include <vector> #define BORDER 2 @@ -17,7 +17,7 @@ public: SpaceInvaderEngine(); ~SpaceInvaderEngine(); - void init(int ship_height, int ship_width, int alien_size); + void init(int ship_height, int ship_width, int alien_size, int no_aliens, int column_size, int row_size); void read_input(Gamepad &pad); void update(Gamepad &pad, N5110 &lcd); void render(N5110 &lcd); @@ -26,18 +26,22 @@ private: - Alien A1; + Armada A1; Ship S1; BulletS BS1; int S1_height; int S1_width; int A1_size; + int N; + int CS; + int RS; int A1y; int BS1x; int BS1y; + Direction D; float Mag;