Add sfx for monster eating block
This commit is contained in:
		
							parent
							
								
									616a4d580a
								
							
						
					
					
						commit
						cf4e818094
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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);
 | 
			
		||||
                            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue