aaaa jujp
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user