Stage::addSound()
Adds a sound (WAV or OGG).
Examples
Syntax
Java
.addSound(name, soundPath)
.addSound(soundPath)
Parameters
| Name | Data Type | Description |
|---|---|---|
| name | String | the sound's name, for playSound(String) |
| soundPath | String | the sound file |
Return
void