From cf4e8180947f7838982d2272ebf56d6bfb628afa Mon Sep 17 00:00:00 2001 From: Alex Page Date: Thu, 3 Feb 2022 01:39:40 -0500 Subject: [PATCH] Add sfx for monster eating block --- src/systems/monster_ai.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/systems/monster_ai.rs b/src/systems/monster_ai.rs index 6d79e5f..e7f5906 100644 --- a/src/systems/monster_ai.rs +++ b/src/systems/monster_ai.rs @@ -67,7 +67,10 @@ pub fn run(world: &mut World, resources: &mut Resources) { match tile { TileType::Wall => {} TileType::Block => { - // TODO: Sound + resources.sound_output.play_sound(sound_effect_for_kind( + monster.kind, + &resources.sound_effects, + )); *tile = TileType::Floor; has_died = Some(entity); }