Compare commits

..

2 commits

6 changed files with 28 additions and 28 deletions

BIN
assets/sounds/click3.ogg Normal file

Binary file not shown.

View file

@ -64,6 +64,7 @@ const PATHS: &[(SfxType, Sfx, &str)] = &[
(SfxType::OneOff, Sfx::GaspRelief, "sounds/gasprelief.ogg"),
(SfxType::OneOff, Sfx::Achieve, "sounds/achieve.ogg"),
(SfxType::OneOff, Sfx::Click, "sounds/click.ogg"),
(SfxType::OneOff, Sfx::Click3, "sounds/click3.ogg"),
(SfxType::OneOff, Sfx::Connect, "sounds/connect.ogg"),
(SfxType::OneOff, Sfx::Crash, "sounds/crash.ogg"),
(SfxType::OneOff, Sfx::Drink, "sounds/drink.ogg"),
@ -89,6 +90,7 @@ pub enum Sfx {
BGMActualJupiterRecording,
BGMTakeoff,
Click,
Click3,
Connect,
Crash,
Drink,
@ -117,6 +119,7 @@ pub fn str2sfx(sfx_label: &str) -> Sfx {
"exit" => Sfx::ExitVehicle,
"honk" => Sfx::Honk,
"click" => Sfx::Click,
"click3" => Sfx::Click3,
"drink" => Sfx::Drink,
"woosh" => Sfx::Woosh,
"zoom" => Sfx::Zoom,

View file

@ -360,13 +360,12 @@
- chat: Luna
- "if $$player_suit_health_percent < 100":
- Holy shit!
- Look at all those scratches and tears on your suit!
- Holy shit! Look at all those scratches and tears on your suit!
- script: repairsuit
- set: grateful
- Let me fix that!
- And I topped off your oxygen tank while I'm at it.
- script: refilloxygen 1
- And I topped off your oxygen tank while I'm at it.
- goto: mainnode
- Oh hey you! Have an oxygen refill!
- script: refilloxygen 1
@ -374,7 +373,7 @@
- label: mainnode
- if: "$grateful"
Thank you so much!:
Thanks for the help!:
- No problem at all!
- set: grateful 0
- goto: mainnode
@ -414,8 +413,7 @@
- goto: EXIT
- goto: mainnode
- What are you up to?:
- I'm running a workshop. Come by if you need any repairs!
- Tinkering on various projects.
- Tinkering on various projects and running a workshop. Come by if you need any repairs!
- What kind of projects?:
- A tuned MotorAce spaceship, an impact dampener, and... a secret project.
- label: projects
@ -468,17 +466,15 @@
- Uh huh.
- Hey, I gotta do some stuff, see you around.
- goto: EXIT
- In the future only, of course.
- Into the future only, of course.
- label: continuemonologue
- I want to get all the way out to the edge of the visible universe, to the end of time, and watch the world evaporate into nothingness.
- I want to get all the way out to the edge of the visible universe.
- To the end of time, to watch the world evaporate into nothingness.
- Got the popcorn waiting already.
- This is the ultimate engineering challenge, but I'm convinced that it is possible, and I just *have* to do this.
- And when I work on it, the whole universe turns silent.
- There is just me, my tools, and the metal.
- It's bliss.
- This is the ultimate engineering challenge, but I'm convinced that it is possible.
- I just *have* to do this.
- Fascinating.:
- Thanks for listening. I appreciate it.
- Usually nobody cares.
- goto: projects
- Wow, you're edgy.:
- And you're a rounding error.
@ -486,9 +482,11 @@
- goto: EXIT
- Yeah, sorry for the monologue. Anything else?
- goto: projects
- Good luck with that!:
- Thanks!
- There was something else I wanted...:
- goto: mainnode
- Bye.:
- So long, drifter!
- goto: EXIT
- goto: timeout
- Good luck with that!:
- Thanks!
@ -500,15 +498,14 @@
- if ~$thinking:
- Well, uh...
- set: thinking
- How should I put this? Don't take it personally, but...
- I really don't like people.
- I'm happy to help you, don't get me wrong.
- But... not really because I care about you.
- Don't take it personally, but...
- I don't really like people.
- Don't get me wrong, I'm happy to help you.
- I enjoy the challenge of fixing, mending, creating.
- Humans in general, though, ravage and exploit.
- People in general, though, ravage and exploit.
- It's in their nature, and I can't stand it.
- I just want to get away. From all this insanity, triviality,...
- Just want to pursue my projects without anyone standing in my way.
- I just want to get away from all this insanity...
- Just want to tinker without anyone bothering me.
- goto: mainnode
- if: "$timetravel"
Do you think time travel into the past is possible?:
@ -572,7 +569,7 @@
- We have talked before. You told me to die, come back to you with a chef hat, and say that sentence.:
- Hah, so the plan worked out! YES!
- Let me apologize though. I must have been rude before you showed me proof for your story.
- There are just so many bullshiters in the world and I don't have the patience anymore.
- There are just so many bullshitters in the world and I don't have the patience anymore.
- But I believe you now.
- If there is *anything* I can do for you, let me know. This is amazing!
- goto: mainnode

View file

@ -218,6 +218,7 @@ pub fn handle_game_event(
}
}
GameEvent::SetMenu(turn) => {
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click));
settings.menu_active = turn.to_bool(settings.menu_active);
for mut window in &mut q_window {
window.cursor.grab_mode = if settings.menu_active {

View file

@ -1080,7 +1080,6 @@ fn handle_input(
fn handle_target_event(
mut commands: Commands,
settings: Res<Settings>,
mut er_target: EventReader<TargetEvent>,
mut ew_sfx: EventWriter<audio::PlaySfxEvent>,
mut ew_achievement: EventWriter<game::AchievementEvent>,
@ -1105,8 +1104,8 @@ fn handle_target_event(
}
}
}
if play_sfx && !settings.mute_sfx {
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click));
if play_sfx {
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click3));
}
break; // Only accept a single event per frame
}

View file

@ -543,7 +543,7 @@ pub fn handle_input(
} else {
menustate.cursor.saturating_sub(1)
};
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click));
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click3));
ew_updatemenu.send(UpdateMenuEvent);
}
if keyboard_input.just_pressed(settings.key_back)
@ -555,7 +555,7 @@ pub fn handle_input(
} else {
menustate.cursor.saturating_add(1)
};
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click));
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click3));
ew_updatemenu.send(UpdateMenuEvent);
}
if keyboard_input.just_pressed(settings.key_interact)