Skip to content

Commit

Permalink
Added worldX/Y entity coords
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Jun 27, 2023
1 parent d74c2fa commit d99eaaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Fixed empty list of values in Rule Editor window, in pure auto-layers
- Fixed rules randomization of flipped tiles
- Fixed the preview of tiles generated by a given rule
- Added entities worldX/Y pixel coordinates to JSON

# 1.3.3

Expand Down
2 changes: 2 additions & 0 deletions src/electron.renderer/data/inst/EntityInstance.hx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ class EntityInstance {
__tags: def.tags.toArray(),
__tile: getSmartTile(),
__smartColor: C.intToHex( getSmartColor(false) ),
__worldX: x + li.level.worldX,
__worldY: y + li.level.worldY,

iid: iid,
width: width,
Expand Down

0 comments on commit d99eaaa

Please sign in to comment.