Constructor
new AudioManager(world)
Creates an instance of AudioManager.
Initializes all sound effects and background music.
Parameters:
| Name | Type | Description |
|---|---|---|
world |
Object | The game world instance. |
- Source:
Methods
startBackroundsound()
Starts the background sound if the music is not muted.
Checks the mute status stored in localStorage under "MusikMute" and plays the background sound
if the stored status is "false". If no mute status is found, it initializes it to "false".