mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
ajout animation mobs+ input player + animation
This commit is contained in:
@ -15,7 +15,7 @@ class MobsCorpACorpIA : public KinematicBody2D
|
||||
{
|
||||
|
||||
public:
|
||||
Sprite* sprite_MobsCorpACorp_ptr;
|
||||
AnimatedSprite* sprite_MobsCorpACorp_ptr;
|
||||
CollisionShape2D* collision_MobsCorpACorp_ptr;
|
||||
|
||||
Ref<Resource> texture_MobsCorpACorp_ptr;
|
||||
@ -35,6 +35,7 @@ public:
|
||||
void _process(float delta);
|
||||
void _init();
|
||||
void _ready();
|
||||
void animation();
|
||||
|
||||
private:
|
||||
void droit();
|
||||
@ -61,6 +62,7 @@ public:
|
||||
public:
|
||||
void Action();
|
||||
const float GamePlayMultiplicator = 100.0f;
|
||||
float pv = 100.0f;
|
||||
const float gravity = 9.8f * GamePlayMultiplicator;
|
||||
const float speed = 50.f;
|
||||
const float power_jump = -2.0f * GamePlayMultiplicator;
|
||||
|
Reference in New Issue
Block a user