diff --git a/assets/audio/unicorn0.ogg b/assets/audio/unicorn0.ogg new file mode 100644 index 0000000..1f9e805 Binary files /dev/null and b/assets/audio/unicorn0.ogg differ diff --git a/assets/audio/unicorn1.ogg b/assets/audio/unicorn1.ogg new file mode 100644 index 0000000..8e2ff0f Binary files /dev/null and b/assets/audio/unicorn1.ogg differ diff --git a/src/audio.rs b/src/audio.rs index 44f3222..6fda331 100644 --- a/src/audio.rs +++ b/src/audio.rs @@ -23,6 +23,7 @@ pub enum SoundEffectKind { Keyboard, Backspace, Guitar, + Unicorn, } #[derive(AssetCollection, Resource, Reflect, Default)] @@ -42,6 +43,8 @@ pub struct AudioAssets { collection(typed) )] pub guitar_sounds: Vec>, + #[asset(paths("audio/unicorn0.ogg", "audio/unicorn1.ogg"), collection(typed))] + pub unicorn_sounds: Vec>, #[asset(path = "music/ingame.ogg")] pub music: Handle, } @@ -59,6 +62,7 @@ impl AudioAssets { Keyboard => select_from!(self.keyboard_sounds), Backspace => self.backspace_sound.clone(), Guitar => select_from!(self.guitar_sounds), + Unicorn => select_from!(self.unicorn_sounds), } } } diff --git a/src/upgrade.rs b/src/upgrade.rs index ee7f5f4..8839496 100644 --- a/src/upgrade.rs +++ b/src/upgrade.rs @@ -1224,6 +1224,7 @@ generate_upgrade_list!( You see through the entities... everything is code. \ Writes 1 character per entity every 2 seconds.\ ".to_string(), + sound: Some(SoundEffectKind::Unicorn), tech_debt: -5.0, entity_min: 5_000.0, install: Some(world.register_system(|