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
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 363 B |
|
Before Width: | Height: | Size: 606 B After Width: | Height: | Size: 563 B |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 537 B After Width: | Height: | Size: 531 B |
|
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 353 B |
|
Before Width: | Height: | Size: 498 B After Width: | Height: | Size: 477 B |
|
Before Width: | Height: | Size: 478 B After Width: | Height: | Size: 478 B |
BIN
data/sound/balloon1.wav
Normal file
BIN
data/sound/balloon2.wav
Normal file
BIN
data/sound/balloon3.wav
Normal file
BIN
data/sound/balloon4.wav
Normal 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);
|
||||
|
||||
@@ -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();
|
||||
|
||||