newFlxSong

This commit is contained in:
2022-01-04 17:01:39 -07:00
parent 5f2d8e3db0
commit 060b03a456

View File

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