mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
debut mouvement animation player
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
#include <CircleShape2D.hpp>
|
||||
#include <CollisionShape2D.hpp>
|
||||
#include <Sprite.hpp>
|
||||
|
||||
#include <AnimatedSprite.hpp>
|
||||
|
||||
|
||||
#include "Player.h"
|
||||
@ -12,7 +12,9 @@ using namespace godot;
|
||||
class GestionPlayer : public KinematicBody2D
|
||||
{
|
||||
public:
|
||||
Sprite* sprite_player_ptr;
|
||||
|
||||
AnimatedSprite* sprite_player_ptr;
|
||||
|
||||
|
||||
Ref<Resource> texture_player_ptr;
|
||||
|
||||
@ -44,6 +46,7 @@ private:
|
||||
void saut();
|
||||
void idle();
|
||||
void attack();
|
||||
void animation();
|
||||
public:
|
||||
const float speed = 100.f;
|
||||
const float GamePlayMultiplicator = 100.0f;
|
||||
|
Reference in New Issue
Block a user