online multiplayer chess game (note server currently down)
Diffstat (limited to 'sounds/SoundFX.gd')
| -rw-r--r-- | sounds/SoundFX.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sounds/SoundFX.gd b/sounds/SoundFX.gd index d86d61f..3e6862c 100644 --- a/sounds/SoundFX.gd +++ b/sounds/SoundFX.gd @@ -1,6 +1,6 @@ extends Node -const soundpath = "res://sounds/" +const soundpath := "res://sounds/" var sounds := { "Check": load(soundpath + "Check.ogg"), @@ -15,7 +15,7 @@ var sounds := { onready var sound_players := get_children() -func play(sound_string, pitch_scale = 1, volume_db = 0) -> void: +func play(sound_string: String, pitch_scale: float = 1, volume_db: float = 0) -> void: for soundPlayer in sound_players: if not soundPlayer.playing: soundPlayer.pitch_scale = pitch_scale |