canviat el outline dels items i els globos per a millorar el contrast

afegits nous sons per a bullet i per a balloon, cada globo te ara el seu so
This commit is contained in:
2025-07-12 14:43:50 +02:00
parent 122d44a710
commit ccce96c731
20 changed files with 25 additions and 4 deletions

View File

@@ -602,19 +602,37 @@ void Game::checkBulletCollision()
}
// Explota el globo
const auto score = balloon_manager_->popBalloon(balloon);
const auto SIZE = balloon->getSize();
const auto SCORE = balloon_manager_->popBalloon(balloon);
evaluateAndSetMenace();
// Otorga los puntos al jugador que disparó la bala
if (player->isPlaying())
{
player->addScore(score * player->getScoreMultiplier() * difficulty_score_multiplier_);
player->addScore(SCORE * player->getScoreMultiplier() * difficulty_score_multiplier_);
player->incScoreMultiplier();
}
updateHiScore();
// Sonido de explosión
playSound("balloon.wav");
switch (SIZE)
{
case BalloonSize::SIZE1:
playSound("balloon1.wav");
break;
case BalloonSize::SIZE2:
playSound("balloon2.wav");
break;
case BalloonSize::SIZE3:
playSound("balloon3.wav");
break;
case BalloonSize::SIZE4:
playSound("balloon4.wav");
break;
default:
playSound("balloon1.wav");
break;
}
// Deshabilita la bala
bullet->disable();