add click sound assets

This commit is contained in:
yuni 2024-03-18 02:24:52 +01:00
parent cbccd3b109
commit 0a8777a764
4 changed files with 7 additions and 7 deletions

View file

@ -19,3 +19,8 @@ git clone [URL]
cd outfly
cargo run
```
# Credits
- https://pixabay.com/sound-effects/typosonic-typing-192811
- https://pixabay.com/sound-effects/click-button-140881

Binary file not shown.

Binary file not shown.

View file

@ -1,13 +1,8 @@
use bevy::prelude::*;
use bevy::audio::PlaybackMode;
//const ASSET_CLICK: &str = "tmp/analog-appliance-button-10-185285.mp3.ogg";
//const ASSET_CLICK: &str = "tmp/analog-appliance-button-1-185276.ogg";
//const ASSET_CLICK: &str = "tmp/click-button-140881.mp3.ogg";
//const ASSET_CLICK: &str = "tmp/keyboard-chblue-146642.mp3.ogg";
const ASSET_CLICK: &str = "tmp/keyboard-chcl-146641.mp3.ogg";
//const ASSET_CLICK: &str = "tmp/typosonic-typing-192811.mp3.ogg";
const ASSET_SWITCH: &str = "tmp/typosonic-typing-192811-crop.ogg";
const ASSET_CLICK: &str = "sounds/click-button-140881-crop.ogg";
const ASSET_SWITCH: &str = "sounds/typosonic-typing-192811-crop.ogg";
pub struct AudioPlugin;
impl Plugin for AudioPlugin {