2024-07-31 14:11:59 +02:00
2 changed files with 6 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -161,6 +161,7 @@ void Game::init(int playerID)
gameCompletedCounter = 0;
section->name = SECTION_PROG_GAME;
section->subsection = SUBSECTION_GAME_PLAY_1P;
currentPower = 0;
menaceCurrent = 0;
menaceThreshold = 0;
hiScoreAchieved = false;
@@ -232,11 +233,11 @@ void Game::init(int playerID)
initPaths();
// En caso de continuar o empezar en una fase que no sea la primera, actualiza las variables siguientes
balloonsPopped = 0;
/*balloonsPopped = 0;
for (int i = 0; i < currentStage; ++i)
{
balloonsPopped += enemyFormations->getStage(i).powerToComplete;
}
}*/
totalPowerToCompleteGame = 0;
for (int i = 0; i < 10; ++i)
@@ -1898,6 +1899,9 @@ void Game::update()
// Actualiza el contador de ticks
ticks = SDL_GetTicks();
if (counter == 0)
createPowerBall();
// Actualiza el contador de juego
counter++;