Merge branch 'main' of https://gitea.sustancia.synology.me/JailDesigner/coffee_crisis_arcade_edition
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.2 KiB |
@@ -161,6 +161,7 @@ void Game::init(int playerID)
|
|||||||
gameCompletedCounter = 0;
|
gameCompletedCounter = 0;
|
||||||
section->name = SECTION_PROG_GAME;
|
section->name = SECTION_PROG_GAME;
|
||||||
section->subsection = SUBSECTION_GAME_PLAY_1P;
|
section->subsection = SUBSECTION_GAME_PLAY_1P;
|
||||||
|
currentPower = 0;
|
||||||
menaceCurrent = 0;
|
menaceCurrent = 0;
|
||||||
menaceThreshold = 0;
|
menaceThreshold = 0;
|
||||||
hiScoreAchieved = false;
|
hiScoreAchieved = false;
|
||||||
@@ -232,11 +233,11 @@ void Game::init(int playerID)
|
|||||||
initPaths();
|
initPaths();
|
||||||
|
|
||||||
// En caso de continuar o empezar en una fase que no sea la primera, actualiza las variables siguientes
|
// 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)
|
for (int i = 0; i < currentStage; ++i)
|
||||||
{
|
{
|
||||||
balloonsPopped += enemyFormations->getStage(i).powerToComplete;
|
balloonsPopped += enemyFormations->getStage(i).powerToComplete;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
totalPowerToCompleteGame = 0;
|
totalPowerToCompleteGame = 0;
|
||||||
for (int i = 0; i < 10; ++i)
|
for (int i = 0; i < 10; ++i)
|
||||||
@@ -1898,6 +1899,9 @@ void Game::update()
|
|||||||
// Actualiza el contador de ticks
|
// Actualiza el contador de ticks
|
||||||
ticks = SDL_GetTicks();
|
ticks = SDL_GetTicks();
|
||||||
|
|
||||||
|
if (counter == 0)
|
||||||
|
createPowerBall();
|
||||||
|
|
||||||
// Actualiza el contador de juego
|
// Actualiza el contador de juego
|
||||||
counter++;
|
counter++;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user