diff --git a/apps/pwa/public/dog-bark-voice.mp3 b/apps/pwa/public/dog-bark-voice.mp3 new file mode 100644 index 0000000..34b09f7 Binary files /dev/null and b/apps/pwa/public/dog-bark-voice.mp3 differ diff --git a/apps/pwa/src/routes/fomo-game.tsx b/apps/pwa/src/routes/fomo-game.tsx index 9a01110..842d5d1 100644 --- a/apps/pwa/src/routes/fomo-game.tsx +++ b/apps/pwa/src/routes/fomo-game.tsx @@ -87,7 +87,8 @@ export default function FomoGame() { const gravity = 0.9; const bounceVelocity = 15; // Upward velocity during bounce const [isRotating, setIsRotating] = useState(false); - console.log("isShowMint", isShowMint); + const voice = new Audio("/dog-bark-voice.mp3"); + useEffect(() => { let motionListener: any; if (isRunning) { @@ -104,6 +105,7 @@ export default function FomoGame() { velocity.current = bounceVelocity; lastBounceTime.current = currentTime; setScore((prev) => prev + 1); + voice.play(); } }; @@ -163,7 +165,7 @@ export default function FomoGame() { }, [isRunning, timeLeft]); const startGame = () => { - setTimeLeft(5); + setTimeLeft(15); setScore(0); // Reset score setPosition(0); // Reset ball position velocity.current = 0; // Reset velocity @@ -230,6 +232,7 @@ export default function FomoGame() { +