Compare commits

..

No commits in common. "310030b18ce15dcb81a010066dfd162e59b45168" and "0dd0474bb0223863648cee53c00bed78a0dc331f" have entirely different histories.

3 changed files with 544 additions and 548 deletions

View file

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

1080
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

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