corregit: els fills dels globos verds eixien taronja
This commit is contained in:
@@ -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_,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user