Module: sound

Members

(static, constant) SOUND_EFFECTS :Record.<string, SoundEffect>

Type:
  • Record.<string, SoundEffect>
Source:

(inner, constant) BACKGROUND_SOUND :SoundEffect

Type:
  • SoundEffect
Source:

Methods

(static) playBackgroundMusic()

Source:

(static) playSoundEffect(soundEffect)

Parameters:
Name Type Description
soundEffect SoundEffect
Source:

(inner) getVolume(variant, volumeFactor) → {number}

Parameters:
Name Type Description
variant 'effect' | 'background'
volumeFactor number
Source:
Returns:
Type
number

(async, inner) playSound(soundEffect, options)

Parameters:
Name Type Description
soundEffect SoundEffect
options 'effect' | 'background'
Source:

Type Definitions

SoundEffect

Type:
  • Object
Source: