Skip to content

Commit 1a7b8e0

Browse files
authored
Feat/save entities global position and save flips (#5)
* fix: add flip field to auto-layer tiles in JSON export when flips are non-zero * fix: add world coordinates to entity positions in pathfinding export
1 parent 1cd34f4 commit 1a7b8e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/electron.renderer/data/Level.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ class Level {
314314

315315
entsArray.push({
316316
id: ed.identifier,
317-
x: eInf.x + li.pxTotalOffsetX,
318-
y: eInf.y + li.pxTotalOffsetY,
317+
x: eInf.x + li.pxTotalOffsetX + worldX,
318+
y: eInf.y + li.pxTotalOffsetY + worldY,
319319
});
320320
}
321321
}

0 commit comments

Comments
 (0)