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:7d4827af00d6
- Parent:
- 19:1073cc64cb0b
- Child:
- 22:8e38efeae0c9
--- a/Game/Game.h Wed May 08 18:36:45 2019 +0000
+++ b/Game/Game.h Wed May 08 23:17:35 2019 +0000
@@ -25,20 +25,33 @@
void position();
void damage(N5110 &lcd,Gamepad &pad);
void UI(Gamepad &pad,N5110 &lcd);
- void death(N5110 &lcd, Gamepad &pad);
+ void death(N5110 &lcd);
+ void win(N5110 &lcd);
void display_health(N5110 &lcd);
int get_lives();
+ int get_coins();
private:
Smiley smiley;
Maze maze;
+ Enemy1 enemyA;
Enemy1 enemy1;
+ Enemy2 enemyB;
Enemy2 enemy2;
Coin coin1;
Coin coin2;
Coin coin3;
Coin coin4;
+ Coin coin5;
+ Coin coin6;
+ Coin coin7;
+ Coin coin8;
+ Coin coin9;
+ Coin coin10;
+ Coin coin11;
+ Coin coin12;
+ Coin coin13;
Menu menu;
Direction dir;
@@ -46,6 +59,7 @@
int x;
int y;
int _lives;
+ int coin;
};
#endif
\ No newline at end of file