forked from jaildesigner-jailgames/jaildoctors_dilemma
Fix: El jugador ya no puede moverse hacia un lateral nada mas subir a la pantalla superior
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user