add click sound assets
This commit is contained in:
parent
cbccd3b109
commit
0a8777a764
|
@ -19,3 +19,8 @@ git clone [URL]
|
||||||
cd outfly
|
cd outfly
|
||||||
cargo run
|
cargo run
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Credits
|
||||||
|
|
||||||
|
- https://pixabay.com/sound-effects/typosonic-typing-192811
|
||||||
|
- https://pixabay.com/sound-effects/click-button-140881
|
||||||
|
|
BIN
assets/sounds/click-button-140881-crop.ogg
Normal file
BIN
assets/sounds/click-button-140881-crop.ogg
Normal file
Binary file not shown.
BIN
assets/sounds/typosonic-typing-192811-crop.ogg
Normal file
BIN
assets/sounds/typosonic-typing-192811-crop.ogg
Normal file
Binary file not shown.
|
@ -1,13 +1,8 @@
|
||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
use bevy::audio::PlaybackMode;
|
use bevy::audio::PlaybackMode;
|
||||||
|
|
||||||
//const ASSET_CLICK: &str = "tmp/analog-appliance-button-10-185285.mp3.ogg";
|
const ASSET_CLICK: &str = "sounds/click-button-140881-crop.ogg";
|
||||||
//const ASSET_CLICK: &str = "tmp/analog-appliance-button-1-185276.ogg";
|
const ASSET_SWITCH: &str = "sounds/typosonic-typing-192811-crop.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";
|
|
||||||
|
|
||||||
pub struct AudioPlugin;
|
pub struct AudioPlugin;
|
||||||
impl Plugin for AudioPlugin {
|
impl Plugin for AudioPlugin {
|
||||||
|
|
Loading…
Reference in a new issue