Class: SoundManager

Carrot.SoundManager(game)

Carrot.SoundManager

Constructor

new SoundManager(game)

The Sound Manager offers audio functions.
Parameters:
Name Type Description
game Carrot.Game The core game object.
Source:

Methods

loop()

Plays a sound and repeats it forever.
Source:

play()

Plays a sound. If the sound is already playing, restart it.
Source:

resume()

Resumes a sound.
Source:

resume()

Pauses a sound.
Source:

stop()

Stops a sound.
Source:

volume()

Changes the volume of a sound.
Source: