Alguns arreglos en updateTimeStopped()
This commit is contained in:
@@ -922,20 +922,28 @@ void Game::updateTimeStopped()
|
|||||||
if (time_stopped_counter_ > 120)
|
if (time_stopped_counter_ > 120)
|
||||||
{
|
{
|
||||||
if (time_stopped_counter_ % 30 == 0)
|
if (time_stopped_counter_ % 30 == 0)
|
||||||
|
{
|
||||||
JA_PlaySound(Resource::get()->getSound("clock.wav"));
|
JA_PlaySound(Resource::get()->getSound("clock.wav"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (time_stopped_counter_ % 15 == 0)
|
|
||||||
JA_PlaySound(Resource::get()->getSound("clock.wav"));
|
|
||||||
if (time_stopped_counter_ % 30 == 0)
|
if (time_stopped_counter_ % 30 == 0)
|
||||||
|
{
|
||||||
balloon_manager_->normalColorsToAllBalloons();
|
balloon_manager_->normalColorsToAllBalloons();
|
||||||
if (time_stopped_counter_ % 30 == 15)
|
JA_PlaySound(Resource::get()->getSound("clock.wav"));
|
||||||
|
}
|
||||||
|
else if (time_stopped_counter_ % 30 == 15)
|
||||||
|
{
|
||||||
balloon_manager_->reverseColorsToAllBalloons();
|
balloon_manager_->reverseColorsToAllBalloons();
|
||||||
|
JA_PlaySound(Resource::get()->getSound("clock.wav"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
disableTimeStopItem();
|
disableTimeStopItem();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Actualiza el juego
|
// Actualiza el juego
|
||||||
|
|||||||
Reference in New Issue
Block a user