From 74a72629e37aeaace1827ef00c233a8b13ee50f9 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Sun, 30 Apr 2023 17:14:58 +0900 Subject: [PATCH] Add speed up sfx --- src/music.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/music.rs b/src/music.rs index b213ece..588b84b 100644 --- a/src/music.rs +++ b/src/music.rs @@ -330,6 +330,12 @@ impl Music { //self.factor_speeding = Some(true); self.factor_speeding = None; self.factor = 1f32; + crate::tone( + Pitch::C2.to_u32() | (Pitch::C7.to_u32() << 16), + 30 | (30 << 8), + 40, + TONE_PULSE2, + ); } pub fn slow_down(&mut self) {