Skip to content

Commit

Permalink
Fixed irrelevant __worldX/Y coords in entities (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Dec 28, 2023
1 parent c122145 commit 80b1f51
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/ldtk/Json.hx
Original file line number Diff line number Diff line change
Expand Up @@ -619,13 +619,15 @@ typedef EntityInstanceJson = {
@added("1.0.0")
var __tags: Array<String>;

/** X world coordinate in pixels **/
/** X world coordinate in pixels. Only available in GridVania or Free world layouts. **/
@added("1.3.4")
var __worldX: Int;
@changed("1.5.0")
var ?__worldX: Int;

/** Y world coordinate in pixels **/
/** Y world coordinate in pixels Only available in GridVania or Free world layouts. **/
@added("1.3.4")
var __worldY: Int;
@changed("1.5.0")
var ?__worldY: Int;

/** Entity width in pixels. For non-resizable entities, it will be the same as Entity definition. **/
@added("0.8.0")
Expand Down

0 comments on commit 80b1f51

Please sign in to comment.