From e009349464f56301d43efe9e3e6cb3daf618a1ab Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Mon, 12 Aug 2024 14:23:40 +0200 Subject: [PATCH] =?UTF-8?q?el=20borde=20de=20la=20powerball=20no=20era=20t?= =?UTF-8?q?ransparent=20quan=20el=20globo=20est=C3=A0=20creant-se?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/balloon.cpp | 2 +- source/game.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/source/balloon.cpp b/source/balloon.cpp index d5cc02e..303f0b4 100644 --- a/source/balloon.cpp +++ b/source/balloon.cpp @@ -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); diff --git a/source/game.cpp b/source/game.cpp index c7cc439..48414a8 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -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++;