Skip to main content

SoundLibrary

Summary

Built-in sound-effect library.

Signature

Methods

load

Register a sound effect under a unique key.

mute

Toggle the muted state of all loaded sound effects.

play

Play a previously loaded sound effect.

Remarks

Manages a collection of named HTMLAudioElement instances. Load sounds with load and trigger playback with play. Register with the application: Access in game code: