add sounds to hollywoo-flixel

This commit is contained in:
2021-11-01 16:53:05 -04:00
parent 6e2be30e07
commit 7599a02d96
3 changed files with 12 additions and 2 deletions

View File

@@ -101,3 +101,11 @@
(dialogBox.kill)
(cc)
}))
(method :Void playSound [:FlxSound sound :Float volumeMod :Continuation cc]
// TODO preserve its original volume
(set sound.volume volumeMod)
(sound.play)
// TODO wait for its duration
(cc)
)