Retocado un poco mas el salto
This commit is contained in:
@@ -117,6 +117,7 @@ void Player::checkInput()
|
||||
jumpStrenght = std::max(jumpStrenght -= 0.4f, 0.0f);
|
||||
vy -= jumpStrenght;
|
||||
}
|
||||
jumpPressed = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -218,7 +219,6 @@ void Player::move()
|
||||
} while (checkMapCollisions());
|
||||
jumping = false;
|
||||
vy = 0.0f;
|
||||
jumpStrenght = 2.0f;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -226,6 +226,8 @@ void Player::move()
|
||||
{
|
||||
y++;
|
||||
} while (checkMapCollisions());
|
||||
jumping = false;
|
||||
vy = 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user