Skip to content

Commit

Permalink
Add SFX for Unicorn Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
necrashter committed Dec 10, 2023
1 parent db811fc commit 2a1476b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Binary file added assets/audio/unicorn0.ogg
Binary file not shown.
Binary file added assets/audio/unicorn1.ogg
Binary file not shown.
4 changes: 4 additions & 0 deletions src/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pub enum SoundEffectKind {
Keyboard,
Backspace,
Guitar,
Unicorn,
}

#[derive(AssetCollection, Resource, Reflect, Default)]
Expand All @@ -42,6 +43,8 @@ pub struct AudioAssets {
collection(typed)
)]
pub guitar_sounds: Vec<Handle<AudioSource>>,
#[asset(paths("audio/unicorn0.ogg", "audio/unicorn1.ogg"), collection(typed))]
pub unicorn_sounds: Vec<Handle<AudioSource>>,
#[asset(path = "music/ingame.ogg")]
pub music: Handle<AudioSource>,
}
Expand All @@ -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),
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(|
Expand Down

0 comments on commit 2a1476b

Please sign in to comment.