retocat el timing de la seqüencia final
This commit is contained in:
@@ -359,6 +359,9 @@ void Game::updateGameStateGameOver()
|
||||
// Gestiona eventos para el estado del final del juego
|
||||
void Game::updateGameStateCompleted()
|
||||
{
|
||||
constexpr int START_CELEBRATIONS = 400;
|
||||
constexpr int END_CELEBRATIONS = START_CELEBRATIONS + 300;
|
||||
|
||||
updatePlayers();
|
||||
updateScoreboard();
|
||||
updateBackground();
|
||||
@@ -383,7 +386,7 @@ void Game::updateGameStateCompleted()
|
||||
|
||||
// Comienza las celebraciones
|
||||
// Muestra el mensaje de felicitación y da los puntos a los jugadores
|
||||
if (game_completed_counter_ == 200)
|
||||
if (game_completed_counter_ == START_CELEBRATIONS)
|
||||
{
|
||||
createMessage({paths_.at(4), paths_.at(5)}, Resource::get()->getTexture("game_text_congratulations"));
|
||||
createMessage({paths_.at(6), paths_.at(7)}, Resource::get()->getTexture("game_text_1000000_points"));
|
||||
@@ -403,7 +406,7 @@ void Game::updateGameStateCompleted()
|
||||
}
|
||||
|
||||
// Termina las celebraciones
|
||||
if (game_completed_counter_ == 500)
|
||||
if (game_completed_counter_ == END_CELEBRATIONS)
|
||||
{
|
||||
for (auto &player : players_)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user