diff --git a/game/src/PlayerStates.c b/game/src/PlayerStates.c index bd789a4..8dca73a 100644 --- a/game/src/PlayerStates.c +++ b/game/src/PlayerStates.c @@ -158,21 +158,16 @@ const State* PlayerKickA_Update(Player* self, float deltaTime) { return PlayerKickA(); } -static -const State* PlayerAir_Update(Player* self, float deltaTime) { - return NULL; -} - void PlayerJump_Enter(Player* self) { if(self->jumpInput) { self->currentAnimation = self->jump; - self->verticalVelocity = 2.f; + self->verticalVelocity = 3.f; } animation_sprite_play_from(self->currentAnimation, 0.f); } const State* PlayerJump_Update(Player* self, float deltaTime) { - self->verticalVelocity -= 3.f * deltaTime; + self->verticalVelocity -= 5.f * deltaTime; if(self->height == 0.f) { self->verticalVelocity = 0.f; return PlayerIdle(); @@ -196,9 +191,7 @@ const State* PlayerAirHeavy_Update(Player* self, float deltaTime) { }; const float ntime = animation_sprite_get_time_normalized(self->currentAnimation); size_t frame = sprite_get_tile(self->sprite); - if(frame == 1) { - PlayerHurtbox(self, damage, MakeVector(0.07f, 0.07f), MakeVector(0.3f, -0.38f)); - } + if(frame == 1) PlayerHurtbox(self, damage, MakeVector(0.12f, 0.12f), MakeVector(0.12f, -0.48f)); const State* result = PlayerJump_Update(self, deltaTime); return (result == PlayerJump()) ? PlayerAirHeavy() : result; }