Add funny oof sound
This commit is contained in:
parent
5f4f1c7a6e
commit
718e5bf244
BIN
assets/oof.ogg
Normal file
BIN
assets/oof.ogg
Normal file
Binary file not shown.
@ -157,6 +157,7 @@ fn projectile_collide_system(
|
||||
mut commands: Commands,
|
||||
mut stats: ResMut<ArnoldStats>,
|
||||
assets: Res<AssetServer>,
|
||||
audio: Res<Audio>,
|
||||
projectile_query: Query<(&Projectile, &Transform)>,
|
||||
mut target_query: Query<(Entity, &mut Hitpoints, &Transform)>,
|
||||
) {
|
||||
@ -205,6 +206,7 @@ fn projectile_collide_system(
|
||||
if hp.hp <= 0 {
|
||||
stats.kills += 1;
|
||||
commands.entity(entity).despawn();
|
||||
audio.play(assets.load("oof.ogg"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user