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: Game/Game.h
- Revision:
- 21:6b5d2d75e083
- Parent:
- 20:3ca430241df0
- Child:
- 22:236319885874
diff -r 3ca430241df0 -r 6b5d2d75e083 Game/Game.h
--- a/Game/Game.h Mon Apr 01 17:11:40 2019 +0000
+++ b/Game/Game.h Tue Apr 02 17:40:59 2019 +0000
@@ -15,18 +15,21 @@
private:
int noOfCubes;
int homeSelection;
- Timer timer;
+ bool selection;
bool playing;
int score;
+ Cube cubeArray[30];
+ Face faceArray[180];
+
Ticker ticker;
Gamepad gamepad;
Rasturizer renderer;
- Cube cubeArray[10];
- Face faceArray[60];
+
+ void addScore();
+ void resetScore();
void deathScreen();
bool deathButtonSelections();
void homeButtonSelections();
- bool selection;
public:
Game();
void run();