![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
test 1 doc
Diff: Engine/Engine.h
- Revision:
- 6:00d20886e4f8
- Parent:
- 5:928c2eee4109
- Child:
- 7:530ca713d2b2
--- a/Engine/Engine.h Fri May 22 01:26:24 2020 +0000 +++ b/Engine/Engine.h Mon May 25 16:17:58 2020 +0000 @@ -8,6 +8,8 @@ #include "Platform.h" +void drawMap(N5110 &lcd); + class Engine { @@ -19,21 +21,21 @@ void read_input(Gamepad &pad); void update(Gamepad &pad); void draw(N5110 &lcd); - -private: + bool floorCollide(); + - +private: void ennemyCollide(Gamepad &pad); - void print_health(N5110 &lcd); - Platform _plat; + + //player object Player _p; - // player coordinates int _px; int _py; Direction _d; float _mag; + bool _collision; };