corregit Game::updateGameStateShowingGetReadyMessage()

This commit is contained in:
2025-07-24 20:07:40 +02:00
parent 9eb97fd61c
commit f001e433e0

View File

@@ -1680,13 +1680,7 @@ void Game::updateGameStateEnteringPlayer() {
// Actualiza las variables durante dicho estado // Actualiza las variables durante dicho estado
void Game::updateGameStateShowingGetReadyMessage() { void Game::updateGameStateShowingGetReadyMessage() {
balloon_manager_->update(); updateGameStatePlaying();
updatePathSprites();
updatePlayers();
updateBullets();
updateScoreboard();
updateBackground();
freePathSprites();
if (path_sprites_.empty()) { if (path_sprites_.empty()) {
setState(GameState::PLAYING); setState(GameState::PLAYING);
} }
@@ -1721,7 +1715,6 @@ void Game::updateGameStatePlaying() {
checkAndUpdateBalloonSpeed(); checkAndUpdateBalloonSpeed();
checkState(); checkState();
cleanVectors(); cleanVectors();
// playMusic();
} }
// Vacía los vectores de elementos deshabilitados // Vacía los vectores de elementos deshabilitados