Skip to content

Commit

Permalink
Adds sound on player death (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxEdwards20 authored Apr 19, 2024
1 parent eedea1e commit 68c36d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Client/GameModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,9 @@ private void handleCollisionSounds(Collision message, Entity entity1, Entity en
{
return;
}
if (message.collisionType == Collision.CollisionType.HeadToWall && player == entity1) {
m_deathSoundInstance.Play();
}
if (message.collisionType == Collision.CollisionType.ReceiverDies && player == entity1 ||
message.collisionType == Collision.CollisionType.SenderDies && player == entity2)
{
Expand Down

0 comments on commit 68c36d3

Please sign in to comment.