diff --git a/assets/Sounds/jap-lose-life.wav b/assets/Sounds/jap-lose-life.wav new file mode 100644 index 0000000..a8a88aa Binary files /dev/null and b/assets/Sounds/jap-lose-life.wav differ diff --git a/include/Game/BallSystem.h b/include/Game/BallSystem.h index f40ce54..f72f28c 100644 --- a/include/Game/BallSystem.h +++ b/include/Game/BallSystem.h @@ -41,6 +41,7 @@ #include "Game/ELifebuoyHit.h" #include "Physics/ECreateParticleSequence.h" #include "Sound/CCollisionSound.h" +#include "Sound/EPlaySound.h" namespace dd { diff --git a/src/game/Game/BallSystem.cpp b/src/game/Game/BallSystem.cpp index 0fe388e..6b7fff9 100644 --- a/src/game/Game/BallSystem.cpp +++ b/src/game/Game/BallSystem.cpp @@ -176,6 +176,9 @@ void dd::Systems::BallSystem::UpdateEntity(double dt, EntityID entity, EntityID Events::LifeLost e; e.Entity = entity; EventBroker->Publish(e); + Events::PlaySound se; + se.FilePath = "Sounds/jap-lose-life.wav"; + EventBroker->Publish(se); return; } } //Removing this made the wall collisions work again