Toggle Mute Implementation - 1


• Created a 'MuteButton' to handle the mute/unmute functionality. 

• Added the Mute/Unmute icons to visually represent the sound state.

• Updated the 'Shoot' method to set laser sound volume just before playing it.

OUTCOME:
Successfully implemented a toggle mute feature for the laser sounds.
BUGS:
Background Music doesn't mute when toggled (I can't seem to fix but have contacted another developer for some advice).

NEXT STEPS:
Live score boards and username input!

Files

web.zip Play in browser
Feb 02, 2024

Leave a comment

Log in with itch.io to leave a comment.