diff --git a/data/gfx/powerball.png b/data/gfx/powerball.png index 59a11b2..cee356f 100644 Binary files a/data/gfx/powerball.png and b/data/gfx/powerball.png differ diff --git a/source/game.cpp b/source/game.cpp index 8fdee22..3e0ab1f 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -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++;