![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
test 1 doc
Diff: Engine/Engine.h
- Revision:
- 8:d19b30a6cd69
- Parent:
- 7:530ca713d2b2
- Child:
- 9:9830d3a78572
--- a/Engine/Engine.h Tue May 26 01:45:20 2020 +0000 +++ b/Engine/Engine.h Tue May 26 22:15:42 2020 +0000 @@ -6,6 +6,8 @@ #include "Gamepad.h" #include "Player.h" #include "Platform.h" +#include "Enemy.h" +#include <vector> void drawMap(N5110 &lcd); @@ -21,24 +23,38 @@ void update(Gamepad &pad); void draw(N5110 &lcd); void floorCollide(); + void spawnEnemy(); + void efloorCollide(); + void ennemyCollide(); - + private: - void ennemyCollide(Gamepad &pad); - + vector <Enemy> enemies; //player object Player _p; // player coordinates int _px; int _py; - - + + Vector2D player; + + //gamepad Direction _d; float _mag; + + //physics bool _jump; + int _oldY; int _Ypos; bool _fall; - bool _collide; + bool _c; + + //enemy + bool _efall; + int _eYpos; + bool _e; + + }; #endif \ No newline at end of file