![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
test 1 doc
Engine/Engine.h
- Committer:
- joebarhouch
- Date:
- 2020-05-26
- Revision:
- 7:530ca713d2b2
- Parent:
- 6:00d20886e4f8
- Child:
- 8:d19b30a6cd69
File content as of revision 7:530ca713d2b2:
#ifndef ENGINE_H #define ENGINE_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Player.h" #include "Platform.h" void drawMap(N5110 &lcd); class Engine { public: Engine(); ~Engine(); void init(); void read_input(Gamepad &pad); void update(Gamepad &pad); void draw(N5110 &lcd); void floorCollide(); private: void ennemyCollide(Gamepad &pad); //player object Player _p; // player coordinates int _px; int _py; Direction _d; float _mag; bool _jump; int _Ypos; bool _fall; bool _collide; }; #endif