life lost sound

This commit is contained in:
Stiffly
2015-10-21 15:52:10 +02:00
parent 59dbe97191
commit 784b2e1d58
3 changed files with 4 additions and 0 deletions
Binary file not shown.
+1
View File
@@ -41,6 +41,7 @@
#include "Game/ELifebuoyHit.h"
#include "Physics/ECreateParticleSequence.h"
#include "Sound/CCollisionSound.h"
#include "Sound/EPlaySound.h"
namespace dd
{
+3
View File
@@ -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