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: SpaceRebEngine/SpaceRebEngine.h
- Revision:
- 5:0da65740cd5e
- Parent:
- 4:d744920089ea
- Child:
- 7:e0cab3e73df9
--- a/SpaceRebEngine/SpaceRebEngine.h Sun May 05 13:53:39 2019 +0000
+++ b/SpaceRebEngine/SpaceRebEngine.h Wed May 08 10:08:05 2019 +0000
@@ -4,12 +4,9 @@
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
+#include "SpaceInvader.h"
#include "Missiles.h"
-#include "SpaceInvader.h"
-// gap from edge of screen
-#define GAPx 2
-#define GAPy 2
class SpaceRebEngine
{
@@ -26,8 +23,7 @@
private:
void check_spaceinvader_collision(Gamepad &pad);
- void print_level(N5110 &lcd);
- void print_time (N5110 &lcd);
+ void check_wall_collision(Gamepad &pad);
SpaceInvader _player;
@@ -36,10 +32,6 @@
int _missiles_size;
int _speed;
- // x positions of the paddles
- int _playerx;
- int _playery;
-
Missiles _missiles;
Direction _d;