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:
- 16:37d98c281eb3
- Parent:
- 15:a080c64cf301
- Child:
- 17:ce6b54422113
--- a/Game/Game.h Mon May 06 18:39:40 2019 +0000
+++ b/Game/Game.h Wed May 08 09:05:27 2019 +0000
@@ -4,6 +4,7 @@
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
+#include "Menu.h"
#include "Smiley.h"
#include "Maze.h"
#include "Enemy1.h"
@@ -19,9 +20,11 @@
void init();
void dirmag(Gamepad &pad);
void drawSprite(N5110 &lcd);
- void collect(Smiley smiley,Coin coin,N5110 &lcd);
+ void collect(N5110 &lcd, Gamepad &pad);
void movement(Gamepad &pad,N5110 &lcd);
- void damage(int lives);
+ void damage(N5110 &lcd,Gamepad &pad);
+ void UI(Gamepad &pad,N5110 &lcd);
+ bool death(int lives);
private:
@@ -30,11 +33,13 @@
Enemy1 enemy1;
Enemy2 enemy2;
Coin coin;
+ Menu menu;
Direction dir;
float mag;
int x;
int y;
+ int _lives;
};
#endif
\ No newline at end of file