Compare commits

...

3 commits

3 changed files with 550 additions and 546 deletions

View file

@ -1,8 +1,9 @@
# git development version # git development version
- Upgrade to Rust 1.81 - Upgrade to Bevy 0.14.2, Rust 1.81
- Overhauled sounds effecs and music
- Add "`" (backtick) key to fast-forward conversations - Add "`" (backtick) key to fast-forward conversations
- Replace all "non-free" game assets with "free" variants - All game assets are now free, as defined by the Free Software Foundation
- Fix dialogs - Fix dialogs
# v0.10.2 # v0.10.2

1084
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -640,11 +640,12 @@ pub fn apply_input_to_player(
// Play sound effects // Play sound effects
if let Some(sink) = sinks.get(&audio::Sfx::ElectricMotor) { if let Some(sink) = sinks.get(&audio::Sfx::ElectricMotor) {
let reactionwheel_volume = 1.5;
let volume = sink.volume(); let volume = sink.volume();
let speed = sink.speed(); let speed = sink.speed();
let action = pitch_yaw_rot.length_squared().powf(0.2) * 0.0005; let action = pitch_yaw_rot.length_squared().powf(0.2) * 0.0005;
if play_reactionwheel_sound && !settings.mute_sfx && bike.is_some() { if play_reactionwheel_sound && !settings.mute_sfx && bike.is_some() {
sink.set_volume((volume + action).clamp(0.0, 1.0)); sink.set_volume(reactionwheel_volume * (volume + action).clamp(0.0, 1.0));
sink.set_speed((speed + action * 0.2).clamp(0.2, 0.5)); sink.set_speed((speed + action * 0.2).clamp(0.2, 0.5));
sink.play() sink.play()
} else { } else {
@ -658,11 +659,11 @@ pub fn apply_input_to_player(
} }
let sinks = vec![ let sinks = vec![
( (
1.2, 1.0,
actor::EngineType::Monopropellant, actor::EngineType::Monopropellant,
sinks.get(&audio::Sfx::Thruster), sinks.get(&audio::Sfx::Thruster),
), ),
(1.4, actor::EngineType::Ion, sinks.get(&audio::Sfx::Ion)), (1.0, actor::EngineType::Ion, sinks.get(&audio::Sfx::Ion)),
]; ];
let seconds_to_max_vol = 0.05; let seconds_to_max_vol = 0.05;
let seconds_to_min_vol = 0.05; let seconds_to_min_vol = 0.05;