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:
- 34:c5a042973e0c
- Parent:
- 33:023f57d52b1c
- Child:
- 37:4d525a37d5d2
diff -r 023f57d52b1c -r c5a042973e0c Gameengine/Gameengine.h
--- a/Gameengine/Gameengine.h Wed Apr 10 17:56:13 2019 +0000
+++ b/Gameengine/Gameengine.h Thu Apr 11 21:29:48 2019 +0000
@@ -19,11 +19,13 @@
void read_direction(Gamepad &pad);
void update(N5110 &lcd, Gamepad &pad);
void game_init();
- void draw(Key _k, N5110 &lcd, Gamepad &pad);
+ void draw(keyed _k, N5110 &lcd, Gamepad &pad);
void lose_life(N5110 &lcd);
bool game_over();
void next_level(N5110 &lcd);
- bool enemy_death();
+ bool enemy_death();
+ bool trap_death(N5110 &lcd);
+ void solid_blocks(N5110 &lcd);
private:
@@ -39,7 +41,7 @@
Direction _d;
Level1 _l1;
Timer t;
- Key _k;
+ keyed _k;
};
#endif
\ No newline at end of file