mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
deplacment basique joueur
This commit is contained in:
@ -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;
|
||||
};
|
Reference in New Issue
Block a user