Implement whipping
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Alex Page 2022-01-30 17:06:27 -05:00
parent 2be2b357ad
commit 784e205357
9 changed files with 249 additions and 11 deletions

View file

@ -29,6 +29,8 @@ pub struct SoundEffects {
pub pickup: SoundSamples,
pub bad_key: SoundSamples,
pub blocked: SoundSamples,
pub whipping: SoundSamples,
pub whipping_hit: SoundSamples,
rng: RandomNumberGenerator,
}
@ -105,6 +107,24 @@ impl SoundEffects {
})
.collect(),
}),
whipping: ss.render_sound_effect(&SoundEffect {
sounds: vec![Sound {
sound_type: SoundType::Tone(70),
duration: Duration::from_secs(3),
}],
}),
whipping_hit: ss.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),
},
],
}),
rng: RandomNumberGenerator::new(),
}
}