Private constructor. Initializes sounds.
Map of audio files.
Array of footstep sound {@link HTMLAudioElement} instances.
Maximum volume of steps. Ranges between 0 and 1.
Determines after which distance the sound is dampened completely.
Singleton instance
Calculates an ideal volume curve for sounds that have been triggered somewhere else on the map.
Volume,ranging between 0 and 1.
Plays the shoot sound effect.
what type of sound are we playing
how loud the sound plays. Ranges from 0 to 1.
Generated using TypeDoc
Sound class. Makes it easy to play sound.
This class is implemented using the Singleton Pattern. See https://en.wikipedia.org/wiki/Singleton_pattern