Working on battle animation
This commit is contained in:
1 parent
422ff1fbe3
commit
493eb5a5d7
13 files changed
+946723
-25
No files matched your search
+12
-4
@@ -12,8 +12,12 @@
|
||||
namespace ZL {
|
||||
|
||||
enum class AnimationState {
|
||||
IDLE = 0,
|
||||
WALK = 1
|
||||
STAND = 0,
|
||||
WALK = 1,
|
||||
STAND_TO_ACTION = 2,
|
||||
ACTION_ATTACK = 3,
|
||||
ACTION_IDLE = 4,
|
||||
ACTION_TO_STAND = 5
|
||||
};
|
||||
|
||||
class Character {
|
||||
@@ -47,6 +51,11 @@ public:
|
||||
std::string npcName;
|
||||
bool giftReceived = false;
|
||||
|
||||
int battle_state = 0;
|
||||
bool resetAnim = false;
|
||||
int attack = 0;
|
||||
AnimationState currentState = AnimationState::STAND;
|
||||
|
||||
private:
|
||||
struct AnimationData {
|
||||
BoneSystem model;
|
||||
@@ -57,8 +66,7 @@ private:
|
||||
};
|
||||
|
||||
std::map<AnimationState, AnimationData> animations;
|
||||
AnimationState currentState = AnimationState::IDLE;
|
||||
std::shared_ptr<Texture> texture;
|
||||
std::shared_ptr<Texture> texture;
|
||||
|
||||
Eigen::Vector3f walkTarget = Eigen::Vector3f(0.f, 0.f, 0.f);
|
||||
float targetFacingAngle = 0.0f;
|
||||
|
||||
Reference in new issue
Block a user