From 232a23a5dd13585a90a78ae80cccb98243cbc6f4 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Wed, 24 Sep 2025 11:42:48 +0200 Subject: [PATCH] corregida velocitat_y en createChild() --- source/balloon_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/balloon_manager.cpp b/source/balloon_manager.cpp index b2d824d..2a8bd84 100644 --- a/source/balloon_manager.cpp +++ b/source/balloon_manager.cpp @@ -217,7 +217,7 @@ void BalloonManager::createChildBalloon(const std::shared_ptr &balloon, auto b = createBalloon(config); // Establece parametros (deltaTime en segundos - velocidades en pixels/segundo) - constexpr float VEL_Y_BALLOON_PER_S = -9.0F; // -0.15 pixels/ms convertido a pixels/segundo (-0.15 * 60 = -9) + constexpr float VEL_Y_BALLOON_PER_S = -150.0F; // -2.50 pixels/frame convertido a pixels/segundo (-2.50 * 60 = -150) b->setVelY(b->getType() == Balloon::Type::BALLOON ? VEL_Y_BALLOON_PER_S : Balloon::VELX_NEGATIVE * 2.0F); // Herencia de estados