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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 363 B

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 606 B

After

Width:  |  Height:  |  Size: 563 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 537 B

After

Width:  |  Height:  |  Size: 531 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 352 B

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 498 B

After

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 478 B

After

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

BIN
data/sound/balloon1.wav Normal file

Binary file not shown.

BIN
data/sound/balloon2.wav Normal file

Binary file not shown.

BIN
data/sound/balloon3.wav Normal file

Binary file not shown.

BIN
data/sound/balloon4.wav Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -287,7 +287,10 @@ void Director::setFileList()
Asset::get()->add(prefix + "/data/music/credits.ogg", AssetType::MUSIC);
// Sonidos
Asset::get()->add(prefix + "/data/sound/balloon.wav", AssetType::SOUND);
Asset::get()->add(prefix + "/data/sound/balloon1.wav", AssetType::SOUND);
Asset::get()->add(prefix + "/data/sound/balloon2.wav", AssetType::SOUND);
Asset::get()->add(prefix + "/data/sound/balloon3.wav", AssetType::SOUND);
Asset::get()->add(prefix + "/data/sound/balloon4.wav", AssetType::SOUND);
Asset::get()->add(prefix + "/data/sound/bubble1.wav", AssetType::SOUND);
Asset::get()->add(prefix + "/data/sound/bubble2.wav", AssetType::SOUND);
Asset::get()->add(prefix + "/data/sound/bubble3.wav", AssetType::SOUND);

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();