el borde de la powerball no era transparent quan el globo està creant-se

This commit is contained in:
2024-08-12 14:23:40 +02:00
parent 4d1f1d2bc2
commit e009349464
2 changed files with 6 additions and 1 deletions

View File

@@ -327,7 +327,7 @@ void Balloon::render()
sprite->render();
}
if (kind == POWER_BALL)
if (kind == POWER_BALL && !isBeingCreated())
{
Sprite *sp = new Sprite(sprite->getRect(), sprite->getTexture());
sp->setSpriteClip(BALLOON_WIDTH_4, 0, BALLOON_WIDTH_4, BALLOON_WIDTH_4);

View File

@@ -1907,6 +1907,11 @@ void Game::update()
// Actualiza el contador de ticks
ticks = SDL_GetTicks();
#ifdef DEBUG
if (counter == 0)
createPowerBall();
#endif
// Actualiza el contador de juego
counter++;