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.h
- Revision:
- 18:ff0a53dcb862
- Parent:
- 15:2bda80896a84
- Child:
- 19:4789cb4ca550
--- a/Gameengine.h Mon Apr 01 14:59:18 2019 +0000
+++ b/Gameengine.h Mon Apr 01 21:51:08 2019 +0000
@@ -5,7 +5,7 @@
#include "N5110.h"
#include "Gamepad.h"
#include "Minerengine.h"
-#include "Levelengine.h"
+#include "Level1.h"
class Gameengine
{
@@ -18,13 +18,15 @@
void update(N5110 &lcd, Gamepad &pad);
void game_init();
void draw(N5110 &lcd);
+ void lose_life(N5110 &lcd);
private:
- Levelengine _level;
Minerengine _miner;
Direction _d;
int _level_select;
+ Level1 _l1;
+ int _lives;
};