life lost sound
This commit is contained in:
Binary file not shown.
@@ -41,6 +41,7 @@
|
|||||||
#include "Game/ELifebuoyHit.h"
|
#include "Game/ELifebuoyHit.h"
|
||||||
#include "Physics/ECreateParticleSequence.h"
|
#include "Physics/ECreateParticleSequence.h"
|
||||||
#include "Sound/CCollisionSound.h"
|
#include "Sound/CCollisionSound.h"
|
||||||
|
#include "Sound/EPlaySound.h"
|
||||||
|
|
||||||
namespace dd
|
namespace dd
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -176,6 +176,9 @@ void dd::Systems::BallSystem::UpdateEntity(double dt, EntityID entity, EntityID
|
|||||||
Events::LifeLost e;
|
Events::LifeLost e;
|
||||||
e.Entity = entity;
|
e.Entity = entity;
|
||||||
EventBroker->Publish(e);
|
EventBroker->Publish(e);
|
||||||
|
Events::PlaySound se;
|
||||||
|
se.FilePath = "Sounds/jap-lose-life.wav";
|
||||||
|
EventBroker->Publish(se);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} //Removing this made the wall collisions work again
|
} //Removing this made the wall collisions work again
|
||||||
|
|||||||
Reference in New Issue
Block a user