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:
- 14:dc3524d11921
- Parent:
- 13:3bf02cb26d6d
- Child:
- 15:2bda80896a84
--- a/Minerengine.h Thu Mar 28 22:32:09 2019 +0000
+++ b/Minerengine.h Fri Mar 29 00:30:03 2019 +0000
@@ -37,23 +37,26 @@
Minerengine();
~Minerengine();
void read_direction(Gamepad &pad);
- void miner_move();
+ int miner_move();
void miner_draw(N5110 &lcd);
void miner_gravity(N5110 &lcd);
void miner_jump(N5110 &lcd, Gamepad &pad);
void miner_init();
void miner_collision(N5110 &lcd);
Vector2D get_pos();
+ int _x;
private:
Direction _d;
int _direction;
- int _jump;
int _right_collision;
int _left_collision;
int _stop_jump;
int _gravity;
+ int _jump;
+ int _y;
+
};
#endif
\ No newline at end of file