treballant en arreglas els includes de SDL3

This commit is contained in:
2025-07-18 13:58:58 +02:00
parent e4b16a6602
commit 2aaba7938c
77 changed files with 3211 additions and 2458 deletions

View File

@@ -203,14 +203,14 @@ void BalloonManager::createChildBalloon(const std::shared_ptr<Balloon> &balloon,
const int CHILD_HEIGHT = BALLOON_SIZE[static_cast<int>(balloon->getSize()) - 1];
const int Y = balloon->getPosY() + (PARENT_HEIGHT - CHILD_HEIGHT) / 2;
const int X = direction == "LEFT" ? balloon->getPosX() + (balloon->getWidth() / 3) : balloon->getPosX() + 2 * (balloon->getWidth() / 3);
// Crea el globo
auto b = createBalloon(0, Y, balloon->getType(), SIZE, VX, balloon_speed_, 0);
// Establece parametros
b->alignTo(X);
b->setVelY(b->getType() == BalloonType::BALLOON ? -2.50f : BALLOON_VELX_NEGATIVE * 2.0f);
// Herencia de estados
if (balloon->isStopped())
{