recuperat el hit_stop al ser colpejat per un globo (modificable al fitxer de parametres)

This commit is contained in:
2025-07-14 15:34:26 +02:00
parent 3d26a3022c
commit 6bc5cf1e93
5 changed files with 22 additions and 1 deletions

View File

@@ -935,8 +935,11 @@ void Game::handlePlayerCollision(std::shared_ptr<Player> &player)
else
{
// Si no tiene cafes, muere
balloon_manager_->stopAllBalloons();
playSound("player_collision.wav");
if (param.game.hit_stop)
{
SDL_Delay(param.game.hit_stop_ms);
}
screen_->shake();
playSound("voice_no.wav");
player->setPlayingState(PlayerState::ROLLING);