Skip to content

Commit

Permalink
#Fix 6990. Added image collection offsets.
Browse files Browse the repository at this point in the history
  • Loading branch information
zekeatchan committed Jan 21, 2025
1 parent c145f73 commit 70854f6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/tilemaps/parsers/tiled/BuildTilesetIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ var BuildTilesetIndex = function (mapData)
for (var j = 0; j < images.length; j++)
{
var image = images[j];

set = new Tileset(image.image, image.gid, image.width, image.height, 0, 0);
var offset = {
x: 0,
y: image.height - mapData.tileHeight
};

set = new Tileset(image.image, image.gid, image.width, image.height, 0, 0, null, null, offset);

set.updateTileData(image.width, image.height);

Expand Down

0 comments on commit 70854f6

Please sign in to comment.