Estandaritzats els noms dels fitxers de audio
Eliminat el soroll de TNT que feia ANYS que no existía
This commit is contained in:
@@ -205,7 +205,7 @@ void Game::updateHiScore()
|
||||
if (hi_score_achieved_ == false)
|
||||
{
|
||||
hi_score_achieved_ = true;
|
||||
JA_PlaySound(Resource::get()->getSound("hiscore.wav"));
|
||||
JA_PlaySound(Resource::get()->getSound("hi_score_achieved.wav"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -467,7 +467,7 @@ void Game::checkPlayerItemCollision(std::shared_ptr<Player> &player)
|
||||
player->addScore(1000);
|
||||
const auto x = item->getPosX() + (item->getWidth() - game_text_textures_.at(0)->getWidth()) / 2;
|
||||
createItemText(x, game_text_textures_.at(0));
|
||||
JA_PlaySound(Resource::get()->getSound("itempickup.wav"));
|
||||
JA_PlaySound(Resource::get()->getSound("item_pickup.wav"));
|
||||
break;
|
||||
}
|
||||
case ItemType::GAVINA:
|
||||
@@ -475,7 +475,7 @@ void Game::checkPlayerItemCollision(std::shared_ptr<Player> &player)
|
||||
player->addScore(2500);
|
||||
const auto x = item->getPosX() + (item->getWidth() - game_text_textures_.at(1)->getWidth()) / 2;
|
||||
createItemText(x, game_text_textures_.at(1));
|
||||
JA_PlaySound(Resource::get()->getSound("itempickup.wav"));
|
||||
JA_PlaySound(Resource::get()->getSound("item_pickup.wav"));
|
||||
break;
|
||||
}
|
||||
case ItemType::PACMAR:
|
||||
@@ -483,7 +483,7 @@ void Game::checkPlayerItemCollision(std::shared_ptr<Player> &player)
|
||||
player->addScore(5000);
|
||||
const auto x = item->getPosX() + (item->getWidth() - game_text_textures_.at(2)->getWidth()) / 2;
|
||||
createItemText(x, game_text_textures_.at(2));
|
||||
JA_PlaySound(Resource::get()->getSound("itempickup.wav"));
|
||||
JA_PlaySound(Resource::get()->getSound("item_pickup.wav"));
|
||||
break;
|
||||
}
|
||||
case ItemType::DEBIAN:
|
||||
@@ -491,7 +491,7 @@ void Game::checkPlayerItemCollision(std::shared_ptr<Player> &player)
|
||||
player->addScore(100000);
|
||||
const auto x = item->getPosX() + (item->getWidth() - game_text_textures_.at(6)->getWidth()) / 2;
|
||||
createItemText(x, game_text_textures_.at(6));
|
||||
JA_PlaySound(Resource::get()->getSound("debian_pick.wav"));
|
||||
JA_PlaySound(Resource::get()->getSound("debian_pickup.wav"));
|
||||
break;
|
||||
}
|
||||
case ItemType::CLOCK:
|
||||
@@ -499,7 +499,7 @@ void Game::checkPlayerItemCollision(std::shared_ptr<Player> &player)
|
||||
enableTimeStopItem();
|
||||
const auto x = item->getPosX() + (item->getWidth() - game_text_textures_.at(5)->getWidth()) / 2;
|
||||
createItemText(x, game_text_textures_.at(5));
|
||||
JA_PlaySound(Resource::get()->getSound("itempickup.wav"));
|
||||
JA_PlaySound(Resource::get()->getSound("item_pickup.wav"));
|
||||
break;
|
||||
}
|
||||
case ItemType::COFFEE:
|
||||
@@ -561,7 +561,7 @@ void Game::checkBulletCollision()
|
||||
if (rand() % 3 == 0)
|
||||
{
|
||||
createItem(ItemType::COFFEE, pos.x, pos.y);
|
||||
// JA_PlaySound(Resource::get()->getSound("itemdrop.wav"));
|
||||
// JA_PlaySound(Resource::get()->getSound("item_drop.wav"));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -589,7 +589,7 @@ void Game::checkBulletCollision()
|
||||
if (dropped_item != ItemType::COFFEE_MACHINE)
|
||||
{
|
||||
createItem(dropped_item, balloon->getPosX(), balloon->getPosY());
|
||||
JA_PlaySound(Resource::get()->getSound("itemdrop.wav"));
|
||||
JA_PlaySound(Resource::get()->getSound("item_drop.wav"));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -894,7 +894,7 @@ void Game::killPlayer(std::shared_ptr<Player> &player)
|
||||
// Lo pierde
|
||||
player->removeExtraHit();
|
||||
throwCoffee(player->getPosX() + (player->getWidth() / 2), player->getPosY() + (player->getHeight() / 2));
|
||||
JA_PlaySound(Resource::get()->getSound("coffeeout.wav"));
|
||||
JA_PlaySound(Resource::get()->getSound("coffee_out.wav"));
|
||||
screen_->shake();
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user