Move savePosition() out of EntrySprite into PlaygroundSystem
This commit is contained in:
@@ -83,9 +83,7 @@
|
||||
|
||||
(method savePos []
|
||||
(FlxG.camera.extendScrollBounds this PlayState.SCROLL_BOUND_MARGIN)
|
||||
(withWritableComponents archive e [positions Positions]
|
||||
(let [pos (dictGet positions positionKey)]
|
||||
(dictSet positions positionKey (object x (cast this.x Float) y (cast this.y Float) z pos.z)))))
|
||||
(system.savePosition e (cast this.x Float) (cast this.y Float)))
|
||||
|
||||
(method &override :Void update [:Float elapsed]
|
||||
(super.update elapsed)
|
||||
|
Reference in New Issue
Block a user