itch.io is community of indie game creators and players

Devlogs

Toggle Mute Implementation - 1

Cosmic Chaos
A browser game made in HTML5

• 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 39 MB
    Feb 02, 2024
Leave a comment