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:
- 16:8384e9a480ef
- Parent:
- 15:2bda80896a84
- Child:
- 17:b4079bd0e551
--- a/Levelengine.h Fri Mar 29 19:03:10 2019 +0000
+++ b/Levelengine.h Sat Mar 30 02:16:28 2019 +0000
@@ -12,6 +12,14 @@
1,1,1,
};
+
+const int key[12] = {
+ 1,1,0,0,
+ 1,0,1,1,
+ 1,1,0,1,
+
+ };
+
class Levelengine
{
@@ -20,10 +28,15 @@
Levelengine();
~Levelengine();
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);
private:
+
int _collision;
+ int _k; //ensures loop is only executed once and key does not reappear
};