Fixing navigation
This commit is contained in:
1 parent
dcdeae75bc
commit
77c8471636
29 files changed
+15148
-139
No files matched your search
+2
-1
@@ -433,7 +433,7 @@ void Character::update(int64_t deltaMs) {
|
||||
}
|
||||
else
|
||||
{
|
||||
if (prevFrame < 50 && static_cast<int>(anim.currentFrame) >= 50 && (currentState == AnimationState::ACTION_ATTACK || currentState == AnimationState::ACTION_ATTACK_2))
|
||||
if (prevFrame < 19 && static_cast<int>(anim.currentFrame) >= 19 && (currentState == AnimationState::ACTION_ATTACK || currentState == AnimationState::ACTION_ATTACK_2))
|
||||
{
|
||||
if (attackTarget != nullptr)
|
||||
{
|
||||
@@ -1220,6 +1220,7 @@ void Character::setupHitSparks(std::shared_ptr<Texture> sparkTexture)
|
||||
|
||||
void Character::applyDamage(float damageAmount, const Eigen::Vector3f& attackDirection)
|
||||
{
|
||||
std::cout << "Character::applyDamage" << std::endl;
|
||||
hp = hp - damageAmount;
|
||||
if (hp < 0) hp = 0;
|
||||
|
||||
|
||||
Reference in new issue
Block a user