when defining position, remember old z
This commit is contained in:
@@ -196,12 +196,13 @@
|
|||||||
(method :Void defineStagePosition [:FlxCamera camera :StagePosition->Void submit &opt :StagePosition oldPos]
|
(method :Void defineStagePosition [:FlxCamera camera :StagePosition->Void submit &opt :StagePosition oldPos]
|
||||||
(let [db (new DebugLayer)]
|
(let [db (new DebugLayer)]
|
||||||
(set db.cameras [camera])
|
(set db.cameras [camera])
|
||||||
(db.drawCircle oldPos.x oldPos.y 4 FlxColor.YELLOW 2)
|
(when oldPos
|
||||||
|
(db.drawCircle oldPos.x oldPos.y 4 FlxColor.YELLOW 2))
|
||||||
(FlxG.state.add db)
|
(FlxG.state.add db)
|
||||||
(defineFlxPoint
|
(defineFlxPoint
|
||||||
->point
|
->point
|
||||||
{(FlxG.state.remove db)
|
{(FlxG.state.remove db)
|
||||||
(submit (new StagePosition point.x point.y 5.0))})))
|
(submit (new StagePosition point.x point.y (or oldPos?.z 5.0)))})))
|
||||||
|
|
||||||
(method :Void defineLightSource [:FlxLightSource->Void submit]
|
(method :Void defineLightSource [:FlxLightSource->Void submit]
|
||||||
(let [points []]
|
(let [points []]
|
||||||
|
|||||||
Reference in New Issue
Block a user