use FlxPoint.get
This commit is contained in:
@@ -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 []
|
||||
|
@@ -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))
|
||||
|
Reference in New Issue
Block a user