afegit debug per avançar rapidet per les fases
This commit is contained in:
@@ -194,6 +194,9 @@ void Game::init(int playerID)
|
||||
powerBallCounter = 0;
|
||||
coffeeMachineEnabled = false;
|
||||
balloonsPopped = 0;
|
||||
#ifdef DEBUG
|
||||
autoPopBalloons = false;
|
||||
#endif
|
||||
|
||||
// Inicializa las variables para el modo DEMO
|
||||
if (demo.enabled)
|
||||
@@ -1956,6 +1959,13 @@ void Game::update()
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
#ifdef DEBUG
|
||||
if (autoPopBalloons && !gameCompleted)
|
||||
{
|
||||
balloonsPopped++;
|
||||
increaseStageCurrentPower(1);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Comprueba si la música ha de estar sonando
|
||||
checkMusicStatus();
|
||||
@@ -1970,7 +1980,7 @@ void Game::update()
|
||||
updatePlayers();
|
||||
|
||||
// Actualiza el marcador
|
||||
checkPlayersStatus();
|
||||
checkPlayersStatusPlaying();
|
||||
updateScoreboard();
|
||||
|
||||
// Actualiza el fondo
|
||||
@@ -2723,6 +2733,11 @@ void Game::checkEvents()
|
||||
}
|
||||
break;
|
||||
|
||||
case SDLK_3:
|
||||
autoPopBalloons = !autoPopBalloons;
|
||||
screen->showNotification("autoPopBalloons " + boolToString(autoPopBalloons));
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -2859,7 +2874,7 @@ void Game::addScoreToScoreBoard(std::string name, int score)
|
||||
}
|
||||
|
||||
// Comprueba el estado de los jugadores
|
||||
void Game::checkPlayersStatus()
|
||||
void Game::checkPlayersStatusPlaying()
|
||||
{
|
||||
for (auto player : players)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user