From bd0cc6c34db344f0a8f5d80f57c8d024a3c76eb6 Mon Sep 17 00:00:00 2001 From: mindxploit Date: Sun, 3 Nov 2024 13:12:30 +0100 Subject: [PATCH] win and lose sounds based on boss outcome --- app/src/utils/soundsEffect.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/utils/soundsEffect.js b/app/src/utils/soundsEffect.js index 1dc7ed0..694ee56 100644 --- a/app/src/utils/soundsEffect.js +++ b/app/src/utils/soundsEffect.js @@ -1,8 +1,9 @@ // https://sfxr.me/ // https://github.com/chr15m/jsfxr?tab=readme-ov-file#library +// https://github.com/goldfire/howler.js import { sfxr } from "jsfxr"; -import { Howl, Howler } from "howler"; +import { Howl } from "howler"; export const coinSound = () => { const coin = sfxr.toAudio( @@ -30,7 +31,6 @@ export const lostSound = () => { src: ["/sounds/lost.wav"], }); - // Play the sound. fail.play(); }; @@ -39,6 +39,5 @@ export const wonSound = () => { src: ["/sounds/arcade_win.wav"], }); - // Play the sound. won.play(); };