newFlxSong

This commit is contained in:
2022-01-04 17:01:39 -07:00
parent 797c3e0406
commit 6a1b8275fa

View File

@@ -22,6 +22,9 @@
(set s.persist true)
(newSound name s)))
(method newFlxSong [name path]
(newSong name path))
(method newFlxVoiceTrack [name wavPath jsonPath]
(newVoiceTrack name (FlxG.sound.load wavPath) (openfl.utils.Assets.getText jsonPath)))