Implement whipping blocks and trees
This commit is contained in:
parent
36d109654c
commit
38d3333635
3 changed files with 66 additions and 27 deletions
|
|
@ -34,7 +34,8 @@ pub struct SoundEffects {
|
|||
pub blocked: SoundSamples,
|
||||
pub whipping: SoundSamples,
|
||||
pub whipping_hit: SoundSamples,
|
||||
pub whipping_hit_end: SoundSamples,
|
||||
pub whipping_hit_enemy: SoundSamples,
|
||||
pub whipping_hit_block: SoundSamples,
|
||||
pub slow_hit: SoundSamples,
|
||||
pub medium_hit: SoundSamples,
|
||||
pub fast_hit: SoundSamples,
|
||||
|
|
@ -121,23 +122,27 @@ impl SoundEffects {
|
|||
}],
|
||||
}),
|
||||
whipping_hit: sound_output.render_sound_effect(&SoundEffect {
|
||||
sounds: vec![
|
||||
Sound {
|
||||
sound_type: SoundType::Tone(400),
|
||||
duration: Duration::from_millis(20),
|
||||
},
|
||||
Sound {
|
||||
sound_type: SoundType::Tone(90),
|
||||
duration: Duration::from_secs(3),
|
||||
},
|
||||
],
|
||||
sounds: vec![Sound {
|
||||
sound_type: SoundType::Tone(90),
|
||||
duration: Duration::from_secs(3),
|
||||
}],
|
||||
}),
|
||||
whipping_hit_end: sound_output.render_sound_effect(&SoundEffect {
|
||||
whipping_hit_enemy: sound_output.render_sound_effect(&SoundEffect {
|
||||
sounds: vec![Sound {
|
||||
sound_type: SoundType::Tone(400),
|
||||
duration: Duration::from_millis(20),
|
||||
}],
|
||||
}),
|
||||
whipping_hit_block: sound_output.render_sound_effect(&SoundEffect {
|
||||
sounds: (20..=5700)
|
||||
.rev()
|
||||
.step_by(100)
|
||||
.map(|x| Sound {
|
||||
sound_type: SoundType::Noise(0, x),
|
||||
duration: Duration::from_millis(18),
|
||||
})
|
||||
.collect(),
|
||||
}),
|
||||
slow_hit: sound_output.render_sound_effect(&SoundEffect {
|
||||
sounds: vec![Sound {
|
||||
sound_type: SoundType::Tone(400),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue