From 63292831240261486014203bdd13a30132b3a5d3 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Tue, 15 Jul 2025 08:18:05 +0200 Subject: [PATCH] fix: la powerball con quantum effect no feia roido al explotar --- source/balloon.cpp | 1 + source/balloon_manager.cpp | 1 + source/director.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/balloon.cpp b/source/balloon.cpp index 3474cd5..6a1bc81 100644 --- a/source/balloon.cpp +++ b/source/balloon.cpp @@ -65,6 +65,7 @@ Balloon::Balloon(float x, float y, BalloonType type, BalloonSize size, float vel constexpr int index = 3; h_ = w_ = BALLOON_SIZE[4]; bouncing_sound_ = BALLOON_BOUNCING_SOUND[3]; + popping_sound_ = "power_ball_explosion.wav"; power_ = score_ = menace_ = 0; vy_ = 0; diff --git a/source/balloon_manager.cpp b/source/balloon_manager.cpp index e9cf349..2cd13a1 100644 --- a/source/balloon_manager.cpp +++ b/source/balloon_manager.cpp @@ -256,6 +256,7 @@ int BalloonManager::popBalloon(std::shared_ptr balloon) if (balloon->getType() == BalloonType::POWERBALL) { + balloon->pop(true); score = destroyAllBalloons(); power_ball_enabled_ = false; balloon_deploy_counter_ = 20; diff --git a/source/director.cpp b/source/director.cpp index 0e320d8..5256a5b 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -49,7 +49,7 @@ Director::Director(int argc, const char *argv[]) Section::name = Section::Name::GAME; Section::options = Section::Options::GAME_PLAY_1P; #elif DEBUG - Section::name = Section::Name::CREDITS; + Section::name = Section::Name::LOGO; Section::options = Section::Options::GAME_PLAY_1P; #else // NORMAL GAME Section::name = Section::Name::LOGO;