feat: tuned attack hurtboxes for players
This commit is contained in:
parent
e6055ed4e6
commit
d98b01c9d6
|
@ -89,7 +89,7 @@ const State* PlayerJabA_Update(Player* self, float deltaTime) {
|
|||
};
|
||||
const float ntime = animation_sprite_get_time_normalized(self->currentAnimation);
|
||||
if(self->animationTriggers == 0 && ntime > 0.33f) {
|
||||
PlayerHurtbox(self, damage, MakeVector(0.1f, 0.06f), MakeVector(0.3f, -0.6f));
|
||||
PlayerHurtbox(self, damage, MakeVector(0.1f, 0.1f), MakeVector(0.265f, -0.6f));
|
||||
++self->animationTriggers;
|
||||
}
|
||||
if(ntime > 1.0f) {
|
||||
|
@ -121,7 +121,7 @@ const State* PlayerJabB_Update(Player* self, float deltaTime) {
|
|||
const float ntime = animation_sprite_get_time_normalized(self->currentAnimation);
|
||||
const size_t frame = sprite_get_tile(self->sprite);
|
||||
if(self->animationTriggers == 0 && ntime > 0.33f) {
|
||||
PlayerHurtbox(self, damage, MakeVector(0.1f, 0.06f), MakeVector(0.3f, -0.6f));
|
||||
PlayerHurtbox(self, damage, MakeVector(0.13f, 0.05f), MakeVector(0.32f, -0.7f));
|
||||
++self->animationTriggers;
|
||||
}
|
||||
if(ntime > 1.0f && self->attackInput == 1)
|
||||
|
@ -189,7 +189,7 @@ void PlayerAirHeavy_Enter(Player* self) {
|
|||
|
||||
const State* PlayerAirHeavy_Update(Player* self, float deltaTime) {
|
||||
const static DamageEventData damage = {
|
||||
.damageAmount = 6,
|
||||
.damageAmount = 4,
|
||||
.knockdown = 1,
|
||||
.stun = 0.75f,
|
||||
.knockback = 0.15f
|
||||
|
|
Loading…
Reference in a new issue