newFlxVoiceTrack

This commit is contained in:
2021-12-16 18:05:53 -07:00
parent 0d9682eecc
commit 12a9d1f260

View File

@@ -17,13 +17,15 @@
(set s.persist true)
(newSound name s)))
(method newFlxVoiceTrack [name wavPath jsonPath]
(newVoiceTrack name (FlxG.sound.load wavPath) (openfl.utils.Assets.getText jsonPath)))
(method newFlxProp [name path]
(let [propSprite (new FlxSprite 0 0)]
(propSprite.loadGraphic path)
(newProp name propSprite)))
(method :Void update [:Float elapsed]
// TODO CCs queued to timers will still be called
(#when debug
(when FlxG.keys.justPressed.N
(doFor [idx label] (enumerate labels)