recuperat el hit_stop al ser colpejat per un globo (modificable al fitxer de parametres)
This commit is contained in:
1 parent
3d26a3022c
commit
6bc5cf1e93
5 files changed
+22
-1
No files matched your search
@@ -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