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:
- 7:06a2558155f0
- Parent:
- 6:5bea67cc96f9
- Child:
- 8:86cb9a9f8a73
--- a/SpaceInvaderEngine/SpaceInvaderEngine.h Mon Mar 23 15:20:59 2020 +0000 +++ b/SpaceInvaderEngine/SpaceInvaderEngine.h Tue Mar 24 16:44:48 2020 +0000 @@ -15,7 +15,7 @@ public: SpaceInvaderEngine(); - void init(int ship_height, int ship_width, int ship_bullet_size, int speed, int alien_size); + void init(int ship_height, int ship_width, int ship_bullet_size, int alien_size); void read_input(Gamepad &pad); void update(Gamepad &pad); void draw(N5110 &lcd); @@ -24,7 +24,7 @@ void read_input(Gamepad &pad); void draw(N5110 &lcd); - void check_alien_collision(Gamepad &pad) + void check_alien_collision(Gamepad &pad); Alien A1; Ship S1; @@ -33,13 +33,10 @@ int S1_height; int S1_width; int A1_size; - int B1_size; - - int A2y; + int BS1_size; - int S1y; - - int B1x; + int A1y; + int BS1x; Direction D; float Mag;