aaaa jujp

This commit is contained in:
AmadeusWM
2025-04-06 23:56:06 +02:00
parent 9fb16f6cdd
commit 3a3182d52d
4 changed files with 9 additions and 3 deletions

View File

@@ -315,7 +315,7 @@ fn play_monster_sounds(
}
play_footstep_segment(
audio,
&audio,
&audio_assets,
distance,
&monster.state,
@@ -324,14 +324,17 @@ fn play_monster_sounds(
);
if monster.state == MonsterState::Hunting && rand.random_bool(0.3) {
println!("Monster growl!");
audio.play(audio_assets.monster_growl.clone())
.with_volume(0.8 as f64)
.fade_in(AudioTween::linear(Duration::from_millis(100)))
.handle();
}
}
}
}
fn play_footstep_segment(
audio: Res<Audio>,
audio: &Res<Audio>,
audio_assets: &Res<AudioAssets>,
distance: f32,
state: &MonsterState,