recuperat el hit_stop al ser colpejat per un globo (modificable al fitxer de parametres)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user