don't auto kill sounds in hollywoo-flixel scene change

This commit is contained in:
2021-11-01 17:02:16 -04:00
parent aba4584028
commit 2000797c8b
2 changed files with 9 additions and 1 deletions

View File

@@ -1 +0,0 @@
(loadFrom "hollywoo" "src/hollywoo/HollywooDSL.kiss")

View File

@@ -0,0 +1,9 @@
(loadFrom "hollywoo" "src/hollywoo/HollywooDSL.kiss")
(method newFlxSound [name path &opt :Float volume]
(set volume (or volume 1))
(assert (<= 0 volume 1))
(let [s (FlxG.sound.load path)]
(set s.volume volume)
(set s.persist true)
(newSound name s)))