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:
- 10:65a6866d418b
- Parent:
- 9:f16581e1eba9
- Child:
- 11:61f28e3448d3
--- a/Minerengine.h Mon Mar 25 18:57:48 2019 +0000
+++ b/Minerengine.h Wed Mar 27 21:51:11 2019 +0000
@@ -37,15 +37,13 @@
Minerengine();
~Minerengine();
void read_direction(Gamepad &pad);
- void miner_move(N5110 &lcd, Gamepad &pad);
+ void miner_move();
void miner_draw(N5110 &lcd);
void miner_gravity(N5110 &lcd);
void miner_jump(N5110 &lcd, Gamepad &pad);
- Vector2D get_pos();
- void set_pos(Vector2D p);
void miner_init();
void miner_collision(N5110 &lcd);
-
+
private:
Direction _d;
@@ -53,8 +51,9 @@
int _jump;
int _x;
int _y;
- int _collision;
-
-
+ int _right_collision;
+ int _left_collision;
+ int _stop_jump;
+
};
#endif
\ No newline at end of file