better sound effects
This commit is contained in:
parent
bf4be327ed
commit
d6291061c9
|
@ -24,3 +24,5 @@ cargo run
|
||||||
|
|
||||||
- https://pixabay.com/sound-effects/typosonic-typing-192811
|
- https://pixabay.com/sound-effects/typosonic-typing-192811
|
||||||
- https://pixabay.com/sound-effects/click-button-140881
|
- https://pixabay.com/sound-effects/click-button-140881
|
||||||
|
- https://pixabay.com/sound-effects/data-transmission-sound-from-14664-72309
|
||||||
|
- https://pixabay.com/sound-effects/thrusters-loopwav-14699
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
name: "Icarus",
|
name: "Icarus",
|
||||||
label: "requested",
|
label: "requested",
|
||||||
delay: 4.0,
|
delay: 4.0,
|
||||||
sound: "connect",
|
sound: "chat",
|
||||||
reply: "Oh hey there!",
|
reply: "Oh hey there!",
|
||||||
goto: "sup",
|
goto: "sup",
|
||||||
),
|
),
|
||||||
|
@ -99,7 +99,7 @@
|
||||||
name: "Space Pizza™",
|
name: "Space Pizza™",
|
||||||
label: "requested",
|
label: "requested",
|
||||||
delay: 5.0,
|
delay: 5.0,
|
||||||
sound: "connect",
|
sound: "chat",
|
||||||
reply: "Welcome to Space Pizza™, best pizza all across the Jovian rings!",
|
reply: "Welcome to Space Pizza™, best pizza all across the Jovian rings!",
|
||||||
goto: "ask",
|
goto: "ask",
|
||||||
),
|
),
|
||||||
|
|
BIN
assets/sounds/connect.ogg
Normal file
BIN
assets/sounds/connect.ogg
Normal file
Binary file not shown.
BIN
assets/sounds/thruster.ogg
Normal file
BIN
assets/sounds/thruster.ogg
Normal file
Binary file not shown.
|
@ -159,7 +159,6 @@ pub fn handle_input(
|
||||||
query: Query<(&Talker, &Transform)>,
|
query: Query<(&Talker, &Transform)>,
|
||||||
player: Query<&Transform, With<actor::Player>>,
|
player: Query<&Transform, With<actor::Player>>,
|
||||||
mut ew_conv: EventWriter<StartConversationEvent>,
|
mut ew_conv: EventWriter<StartConversationEvent>,
|
||||||
mut ew_sfx: EventWriter<audio::PlaySfxEvent>,
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if keyboard_input.just_pressed(settings.key_interact) {
|
if keyboard_input.just_pressed(settings.key_interact) {
|
||||||
|
@ -168,7 +167,6 @@ pub fn handle_input(
|
||||||
for (talker, transform) in &query {
|
for (talker, transform) in &query {
|
||||||
if transform.translation.distance_squared(player.translation) <= mindist {
|
if transform.translation.distance_squared(player.translation) <= mindist {
|
||||||
ew_conv.send(StartConversationEvent{talker: talker.clone()});
|
ew_conv.send(StartConversationEvent{talker: talker.clone()});
|
||||||
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Ping));
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,12 +4,12 @@ use crate::settings;
|
||||||
|
|
||||||
const ASSET_CLICK: &str = "sounds/click-button-140881-crop.ogg";
|
const ASSET_CLICK: &str = "sounds/click-button-140881-crop.ogg";
|
||||||
const ASSET_SWITCH: &str = "sounds/typosonic-typing-192811-crop.ogg";
|
const ASSET_SWITCH: &str = "sounds/typosonic-typing-192811-crop.ogg";
|
||||||
const ASSET_INCOMING_MESSAGE: &str = "external/beep-6-96243.ogg";
|
const ASSET_INCOMING_MESSAGE: &str = "sounds/connect.ogg";
|
||||||
const ASSET_PING: &str = "external/glitch-sound-fx-pack-04-118236.ogg";
|
const ASSET_PING: &str = "sounds/connect.ogg";
|
||||||
const ASSET_CONNECT: &str = "external/friend-request-14878.ogg";
|
const ASSET_CONNECT: &str = "external/friend-request-14878.ogg";
|
||||||
const ASSET_RADIO: &str = "external/LP - Girls Go Wild (Official Music Video)-M7XRN0oHGIM.ogg";
|
const ASSET_RADIO: &str = "external/LP - Girls Go Wild (Official Music Video)-M7XRN0oHGIM.ogg";
|
||||||
const ASSET_BGM: &str = "external/FTL - Faster Than Light (2012) OST - 12 - Void (Explore)-edQw2yYXQJM.ogg";
|
const ASSET_BGM: &str = "external/FTL - Faster Than Light (2012) OST - 12 - Void (Explore)-edQw2yYXQJM.ogg";
|
||||||
const ASSET_THRUSTER: &str = "external/loopingthrust-95548.ogg";
|
const ASSET_THRUSTER: &str = "sounds/thruster.ogg";
|
||||||
const ASSET_WAKEUP: &str = "sounds/wakeup.ogg";
|
const ASSET_WAKEUP: &str = "sounds/wakeup.ogg";
|
||||||
|
|
||||||
pub struct AudioPlugin;
|
pub struct AudioPlugin;
|
||||||
|
|
Loading…
Reference in a new issue