Skip to content

GameAudioPlayer

Overview

audio player for the various sounds that are commonly used in PhET games

@author John Blanco

Class GameAudioPlayer

import { GameAudioPlayer } from 'scenerystack/vegas';

Constructor

new GameAudioPlayer()

Instance Methods

correctAnswer()

play the sound that indicates a correct answer

wrongAnswer()

play the sound that indicates an incorrect answer

challengeComplete()

play the sound that indicates a challenge has been completed

gameOverZeroScore()

play the sound that indicates that the user completed the game but didn't earn any points

gameOverImperfectScore()

play the sound that indicates that the user finished the game and got some correct and some incorrect answers

gameOverPerfectScore()

play the sound that indicates that the user finished the game and got a perfect score

Source Code

See the source for GameAudioPlayer.ts in the vegas repository.