Fix: El jugador ya no puede moverse hacia un lateral nada mas subir a la pantalla superior

This commit is contained in:
2022-11-14 22:58:13 +01:00
parent e2846023da
commit d88b42a516

View File

@@ -273,6 +273,14 @@ void Player::checkState()
vy = 0.0f;
jumpCounter = 0;
fallCounter = 0;
if (!isOnFloor() && !isOnAutoSurface())
{
setState(s_falling);
vx = 0.0f;
vy = maxVY;
fallCounter++;
playFallSound();
}
}
else if (state == s_jumping)