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:
- 82:fdae28b01415
- Parent:
- 73:bac5c72f7588
- Child:
- 92:8a1b14488ca5
diff -r 40725381979a -r fdae28b01415 SpaceInvadersEngine/SpaceInvadersEngine.h
--- a/SpaceInvadersEngine/SpaceInvadersEngine.h Sat Apr 27 21:39:28 2019 +0000
+++ b/SpaceInvadersEngine/SpaceInvadersEngine.h Sun Apr 28 14:35:08 2019 +0000
@@ -8,7 +8,7 @@
#include "bullet.h"
#include "space_ship.h"
-
+
// gap from edge of screen
@@ -19,40 +19,39 @@
{
public:
- SpaceInvadersEngine();
+ SpaceInvadersEngine();
~SpaceInvadersEngine();
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);
-
-
-
- private:
+
+
+
+private:
void check_Alien_collision(Gamepad &pad);
void space_ship_collisions(Gamepad &pad);
void check_goal(Gamepad &pad);
void print_scores(N5110 &lcd);
-
-
-
+
+
+
// Alien _A1;
- int _space_shipx;
+ int _space_shipx;
int _space_ship_width;
int _space_ship_height;
int _bullet_size;
int _Alien_size;
int _speed;
-
+
Direction _d;
float _mag;
-
+
};
#endif
-
\ No newline at end of file