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: Levelengine.h
- Revision:
- 17:b4079bd0e551
- Parent:
- 16:8384e9a480ef
- Child:
- 18:ff0a53dcb862
--- a/Levelengine.h Sat Mar 30 02:16:28 2019 +0000
+++ b/Levelengine.h Mon Apr 01 14:59:18 2019 +0000
@@ -20,6 +20,13 @@
};
+const int key_collected[12] = {
+ 0,0,0,0,
+ 0,0,0,0,
+ 0,0,0,0,
+
+ };
+
class Levelengine
{
@@ -30,15 +37,24 @@
void level_one(N5110 &lcd);
void soft_blocks(int x, int y, N5110 &lcd);
void draw_solid_block(int x, int y, N5110 &lcd);
- void draw_key(int x, int y, N5110 &lcd);
+ void draw_key1(int x, int y, N5110 &lcd);
+ void draw_key2(int x, int y, N5110 &lcd);
+ void draw_key3(int x, int y, N5110 &lcd);
+ void draw_key4(int x, int y, N5110 &lcd);
+ void draw_key5(int x, int y, N5110 &lcd);
+ int keys_collected();
private:
int _collision;
- int _k; //ensures loop is only executed once and key does not reappear
-
-
+ bool key_collect1; //ensures loop is only executed once and key does not reappear
+ bool key_collect2;
+ bool key_collect3;
+ bool key_collect4;
+ bool key_collect5;
+ int _keys;
+
};
#endif
\ No newline at end of file