refactor label handling into AsyncEmbeddedScript
This commit is contained in:
@@ -33,9 +33,4 @@
|
|||||||
(method :Void update [:Float elapsed]
|
(method :Void update [:Float elapsed]
|
||||||
(#when debug
|
(#when debug
|
||||||
(when FlxG.keys.justPressed.N
|
(when FlxG.keys.justPressed.N
|
||||||
(doFor [idx label] (enumerate labels)
|
(skipToNextLabel))))
|
||||||
(when (> label lastInstructionPointer)
|
|
||||||
(doFor =>labelName labelIdx labelsByName
|
|
||||||
(when (= labelIdx label) (trace "SKIPPING TO $labelName")))
|
|
||||||
(runInstruction (dictGet instructionPointersByLine label))
|
|
||||||
(break))))))
|
|
||||||
Reference in New Issue
Block a user