corregit: els fills dels globos verds eixien taronja

This commit is contained in:
2025-09-30 08:47:49 +02:00
parent efe8628a3c
commit 19645445b2
2 changed files with 2 additions and 1 deletions

View File

@@ -208,6 +208,7 @@ void BalloonManager::createChildBalloon(const std::shared_ptr<Balloon> &balloon,
Balloon::Config config = {
.x = std::clamp(X - (CHILD_WIDTH / 2), MIN_X, MAX_X),
.y = balloon->getPosY() + ((PARENT_HEIGHT - CHILD_HEIGHT) / 2),
.type = balloon->getType(),
.size = static_cast<Balloon::Size>(static_cast<int>(balloon->getSize()) - 1),
.vel_x = direction == "LEFT" ? Balloon::VELX_NEGATIVE : Balloon::VELX_POSITIVE,
.game_tempo = balloon_speed_,

View File

@@ -1551,7 +1551,7 @@ void Game::initDemo(Player::Id player_id) {
// Selecciona una pantalla al azar
constexpr auto NUM_STAGES = 3;
const auto STAGE = rand() % NUM_STAGES;
constexpr std::array<int, NUM_STAGES> STAGES = {0, 3, 5};
constexpr std::array<int, NUM_STAGES> STAGES = {0, 2, 4};
stage_manager_->jumpToStage(STAGES.at(STAGE));
// Activa o no al otro jugador