use FlxPoint.get

This commit is contained in:
2023-08-31 14:58:01 -06:00
parent 3642c4e342
commit 667f03226f
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
(case (data.split "|")
([::colorStr ...coordStrs]
(let [points (groups coordStrs 2)]
(new FlxLightSource (for [x y] points (new FlxPoint (Std.parseFloat x) (Std.parseFloat y))) (Std.parseInt colorStr))))
(new FlxLightSource (for [x y] points (FlxPoint.get (Std.parseFloat x) (Std.parseFloat y))) (Std.parseInt colorStr))))
(never otherwise)))
(method destroy []

View File

@@ -56,7 +56,7 @@
(method linearMotion [:Bool skipping :FlxSprite sprite :Float destX :Float destY :Float speed &opt :Void->Void cc :String soundLoop :Float volumeMod :Array<FlxSprite> connectedSprites]
(unless (tweenedPositionsOfSpritesInScenes.exists sceneKey)
(dictSet tweenedPositionsOfSpritesInScenes sceneKey (new Map)))
(dictSet (dictGet tweenedPositionsOfSpritesInScenes sceneKey) sprite (new FlxPoint destX destY))
(dictSet (dictGet tweenedPositionsOfSpritesInScenes sceneKey) sprite (FlxPoint.get destX destY))
(when skipping
(when cc (cc))
(return))