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: Minerengine.h
- Revision:
- 6:866281ce2b44
- Parent:
- 4:b92da6a09c8b
- Child:
- 7:c6e6ec0e3396
diff -r b92da6a09c8b -r 866281ce2b44 Minerengine.h
--- a/Minerengine.h Thu Mar 21 21:29:11 2019 +0000
+++ b/Minerengine.h Fri Mar 22 02:00:48 2019 +0000
@@ -5,34 +5,27 @@
#include "N5110.h"
#include "Gamepad.h"
-const int miner_right[60] = {
- 0,0,0,1,1,
- 0,1,1,1,1,
- 0,1,0,1,0,
- 0,1,1,1,1,
- 0,1,1,1,0,
- 0,0,1,0,0,
- 1,1,1,1,1,
- 1,1,1,1,1,
- 1,1,1,1,1,
- 0,1,1,1,0,
- 0,1,0,1,0,
- 0,1,1,1,1,
+const int miner_right[24] = {
+ 1,1,1,
+ 1,1,0,
+ 1,1,1,
+ 0,1,0,
+ 1,1,1,
+ 1,1,1,
+ 0,1,0,
+ 0,1,1,
+
};
- const int miner_left[60] = {
- 1,1,0,0,0,
- 1,1,1,1,0,
- 0,1,0,1,0,
- 1,1,1,1,0,
- 0,1,1,1,0,
- 0,0,1,0,0,
- 1,1,1,1,1,
- 1,1,1,1,1,
- 1,1,1,1,1,
- 0,1,1,1,0,
- 0,1,0,1,0,
- 1,1,1,1,0,
+ const int miner_left[24] = {
+ 1,1,1,
+ 0,1,1,
+ 1,1,1,
+ 0,1,0,
+ 1,1,1,
+ 1,1,1,
+ 0,1,0,
+ 1,1,0,
};
@@ -49,6 +42,7 @@
void miner_gravity(N5110 &lcd);
void miner_jump(N5110 &lcd, Gamepad &pad);
+
private:
Direction _d;