sound
Sounds.
sound.play
sound.play(name, options?)Plays a sound once: one of the level's ("assets/ding.wav") or one of the game's ("@coin"). options: volume (0 to 1), pitch (1 as it is, 2 an octave up), from and to (seconds: only that part of it).
sound.loop
sound.loop(name, options?)Plays a sound over and over until it is stopped. Gives back the sound that is playing.
sound:stop
playing:stop()Stops a looped sound.
sound.playing
playing.playingIs the looped sound still going?