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: GameEngine/GameEngine.h
- Revision:
- 16:106c27d03402
- Parent:
- 15:658f1216ee84
--- a/GameEngine/GameEngine.h Mon May 07 13:29:49 2018 +0000
+++ b/GameEngine/GameEngine.h Mon May 07 18:27:42 2018 +0000
@@ -4,7 +4,7 @@
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
-#include "Rocket.h"
+#include "Spaceship.h"
#include "Asteroid.h"
/** GameEngine Class
@@ -23,7 +23,7 @@
~GameEngine();
/** Initialise the game elements:
- * rocket, asteroids, time, and
+ * Spaceship, asteroids, time, and
* game over value
*/
void init();
@@ -35,14 +35,14 @@
void read_input(Gamepad &g_pad);
/** Draw the game elements:
- * rocket, asteroids, hearts
+ * Spaceship, asteroids, hearts
* and show the time
* @param LCD object (N5110)
*/
void draw(N5110 &lcd);
/** Update the game elements:
- * rocket, asteroids, the hearts
+ * Spaceship, asteroids, the hearts
* and the time
* @param gamepad object (Gamepad)
*/
@@ -102,7 +102,7 @@
void check_collision3(Gamepad &pad);
int gameOver;
- Rocket _rocket;
+ Spaceship _Spaceship;
Asteroid _asteroid1;
Asteroid _asteroid2;
Asteroid _asteroid3;