deplacment basique joueur

This commit is contained in:
Estrela Allan p1923381
2020-03-31 09:26:51 +02:00
parent 735839c506
commit be3f291382
6 changed files with 60 additions and 64 deletions

View File

@ -43,4 +43,17 @@ public:
void saut();
void idle();
void attack();
public:
const int speed = 100;
const int gravity = 90;
const int power_jump = -250;
bool on_ground = false;
bool right;
bool left;
bool jump;
private:
Vector2 velocity;
Vector2 FLOOR;
};