Skip to content

Commit aece296

Browse files
committed
added menu navigation sound effect. I hope this isn't annoying...
1 parent 07ff69b commit aece296

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

menuManager.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ export const menuManager = {
1010
// Set and show the new active menu
1111
this.activeMenu = menuContainer;
1212
this.activeMenu.style.display = 'block';
13+
14+
// play menu open sound
15+
const audio = new Audio('menuOpen.mp3'); // Adjust the path to your sound file
16+
audio.volume = 0.5; // Set volume to 50%
17+
audio.play();
18+
audio.loop = false; // Play sound once
1319
},
1420

1521
closeMenu: function() {

menuOpen.mp3

1.63 KB
Binary file not shown.

0 commit comments

Comments
 (0)