La powerball ja no es pot destruir fins que no ha fet un rebot

This commit is contained in:
2025-01-04 16:57:50 +01:00
parent 7b6d429bed
commit b53ee12f56
5 changed files with 28 additions and 23 deletions

View File

@@ -220,6 +220,7 @@ void BalloonManager::createPowerBall()
const float vx[values] = {BALLOON_VELX_POSITIVE, BALLOON_VELX_POSITIVE, BALLOON_VELX_POSITIVE, BALLOON_VELX_NEGATIVE, BALLOON_VELX_NEGATIVE, BALLOON_VELX_NEGATIVE};
balloons_.emplace_back(std::make_unique<Balloon>(x[luck], pos_y, BalloonType::POWERBALL, BalloonSize::SIZE4, vx[luck], balloon_speed_, creation_time, play_area_, balloon_textures_[4], balloon_animations_[4]));
balloons_.back()->setInvulnerable(true);
power_ball_enabled_ = true;
power_ball_counter_ = POWERBALL_COUNTER;