Screen:: shake() ara accepta parametres

Coffee_machine: ara queda millor el efecte de caure i rebotar
This commit is contained in:
2025-06-30 19:53:51 +02:00
parent 5321a9e3b5
commit 9873972cf2
2 changed files with 37 additions and 24 deletions

View File

@@ -102,7 +102,7 @@ Game::~Game()
// [Modo DEMO] Vuelve a activar los sonidos
if (demo_.enabled)
{
//Audio::get()->enableSound();
// Audio::get()->enableSound();
}
else
{
@@ -673,7 +673,7 @@ void Game::updateItems()
if (item->isOnFloor())
{
Audio::get()->playSound("title.wav");
screen_->shake();
screen_->shake(1, 2, 4);
}
}
}
@@ -1652,7 +1652,7 @@ void Game::initDemo(int player_id)
}
// Deshabilita los sonidos
//Audio::get()->disableSound();
// Audio::get()->disableSound();
// Configura los marcadores
scoreboard_->setMode(SCOREBOARD_LEFT_PANEL, ScoreboardMode::DEMO);