Hollywoo allow defining positions at runtime

This commit is contained in:
2023-04-12 17:23:49 -06:00
parent 4a83ca82e5
commit d3963201d7
3 changed files with 21 additions and 0 deletions

View File

@@ -155,6 +155,11 @@
})
(FlxG.state.add screen)))
(method :Void defineStagePosition [:StagePosition->Void submit]
(defineFlxPoint
->point
(submit (new StagePosition point.x point.y 0.0))))
(method :Void defineLightSource [:FlxLightSource->Void submit]
(let [points []]
(withFunctions