corregit Game::updateGameStateShowingGetReadyMessage()
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user