refactor label handling into AsyncEmbeddedScript

This commit is contained in:
2021-12-21 20:43:10 -07:00
parent 322fc20743
commit 5d7620e409
3 changed files with 48 additions and 43 deletions

View File

@@ -33,9 +33,4 @@
(method :Void update [:Float elapsed]
(#when debug
(when FlxG.keys.justPressed.N
(doFor [idx label] (enumerate labels)
(when (> label lastInstructionPointer)
(doFor =>labelName labelIdx labelsByName
(when (= labelIdx label) (trace "SKIPPING TO $labelName")))
(runInstruction (dictGet instructionPointersByLine label))
(break))))))
(skipToNextLabel))))