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: engine/engine.h
- Revision:
- 5:0a116644cce2
- Parent:
- 4:55d904040636
- Child:
- 6:46d0caedf217
--- a/engine/engine.h Mon Apr 16 00:11:15 2018 +0000
+++ b/engine/engine.h Mon Apr 16 09:57:57 2018 +0000
@@ -16,14 +16,20 @@
engine();
~engine();
- void init(int rect_height,int speed,int rect_width);
+ void init(int speed);
void read_input(Gamepad &pad);
void update(Gamepad &pad);
void draw(N5110 &lcd);
+
private:
+
+ void engine::check_boom_collision(Gamepad &pad);
+ void engine::check_wall_collision(Gamepad &pad);
+
rect _rect;
+
int _speed;
int _recx;