Merge pull request #257 from AnonymusRaccoon/soundfix

Fix Sound Effets
This commit is contained in:
Clément Le Bihan
2021-06-20 13:40:46 +02:00
committed by GitHub
10 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ namespace BBM
{
auto scene = std::make_shared<WAL::Scene>();
static const std::map<SoundComponent::SoundIndex, std::string> sounds = {
{SoundComponent::JUMP, "assets/sounds/click.ogg"}
{SoundComponent::BOMB, "assets/sounds/click.ogg"}
};
addMenuControl(*scene, sounds);
+1 -1
View File
@@ -51,7 +51,7 @@ namespace BBM
WAL::Entity &Runner::createPlayer(WAL::Scene &scene)
{
std::map<SoundComponent::SoundIndex, std::string> soundPath ={
{SoundComponent::JUMP, "assets/sounds/jump.wav"},
{SoundComponent::BOMB, "assets/sounds/jump.wav"},
{SoundComponent::MOVE, "assets/sounds/move.ogg"},
{SoundComponent::BOMB, "assets/sounds/bomb_drop.ogg"},
//{SoundComponent::DEATH, "assets/sounds/death.ogg"}
+1 -1
View File
@@ -19,7 +19,7 @@ namespace BBM
{
auto scene = std::make_shared<WAL::Scene>();
static const std::map<SoundComponent::SoundIndex, std::string> sounds = {
{SoundComponent::JUMP, "assets/sounds/click.ogg"}
{SoundComponent::BOMB, "assets/sounds/click.ogg"}
};
addMenuControl(*scene, sounds);
+1 -1
View File
@@ -28,7 +28,7 @@ namespace BBM
std::shared_ptr<WAL::Scene> Runner::loadLobbyScene()
{
static const std::map<SoundComponent::SoundIndex, std::string> sounds = {
{SoundComponent::JUMP, "assets/sounds/click.ogg"}
{SoundComponent::BOMB, "assets/sounds/click.ogg"}
};
auto scene = std::make_shared<WAL::Scene>();
+1 -1
View File
@@ -21,7 +21,7 @@ namespace BBM
std::shared_ptr<WAL::Scene> Runner::loadMainMenuScene()
{
static const std::map<SoundComponent::SoundIndex, std::string> sounds = {
{SoundComponent::JUMP, "assets/sounds/click.ogg"}
{SoundComponent::BOMB, "assets/sounds/click.ogg"}
};
auto scene = std::make_shared<WAL::Scene>();
+1 -1
View File
@@ -23,7 +23,7 @@ namespace BBM
std::shared_ptr<WAL::Scene> Runner::loadPauseMenuScene()
{
static const std::map<SoundComponent::SoundIndex, std::string> sounds = {
{SoundComponent::JUMP, "assets/sounds/click.ogg"}
{SoundComponent::BOMB, "assets/sounds/click.ogg"}
};
auto scene = std::make_shared<WAL::Scene>();
+1 -1
View File
@@ -28,7 +28,7 @@ namespace BBM
std::shared_ptr<WAL::Scene> Runner::loadResumeLobbyScene()
{
static const std::map<SoundComponent::SoundIndex, std::string> sounds = {
{SoundComponent::JUMP, "assets/sounds/click.ogg"}
{SoundComponent::BOMB, "assets/sounds/click.ogg"}
};
auto scene = std::make_shared<WAL::Scene>();
+1 -1
View File
@@ -26,7 +26,7 @@ namespace BBM
std::vector<std::string> playersIconPath;
std::vector<std::reference_wrapper<WAL::Entity>> players;
static const std::map<SoundComponent::SoundIndex, std::string> sounds = {
{SoundComponent::JUMP, "assets/sounds/click.ogg"}
{SoundComponent::BOMB, "assets/sounds/click.ogg"}
};
static const std::vector<RAY::Color> tilesColor = {
GOLD, GRAY, BROWN, PURPLE
+1 -1
View File
@@ -22,7 +22,7 @@ namespace BBM
{
auto scene = std::make_shared<WAL::Scene>();
static const std::map<SoundComponent::SoundIndex, std::string> sounds = {
{SoundComponent::JUMP, "assets/sounds/click.ogg"}
{SoundComponent::BOMB, "assets/sounds/click.ogg"}
};
addMenuControl(*scene, sounds);
+1 -1
View File
@@ -19,7 +19,7 @@ namespace BBM
std::shared_ptr<WAL::Scene> Runner::loadTitleScreenScene()
{
static const std::map<SoundComponent::SoundIndex, std::string> sounds = {
{SoundComponent::JUMP, "assets/sounds/click.ogg"}
{SoundComponent::BOMB, "assets/sounds/click.ogg"}
};
auto scene = std::make_shared<WAL::Scene>();
addMenuControl(*scene, sounds);