-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Description
Original issue filed in Tiled: mapeditor/tiled#831
Project used to reproduce problem described below: https://github.com/SoulBeaver/broken-tiled-tilemap2
Tiled screen:
Rendering using phaser-tiled plugin:
Rendering using vanilla phaser:
It turns out that Tiled has the correct ids in the tile layer, but Phaser is displaying an incorrect sprite.
Example:
The first tile in the tilemap is a corner bush with id 857; the tiled .json has 858, which is okay because the firstgid is 1. Phaser instead renders the broken bush, which is 842. We're off by 15. This makes my previous assessment of phaser missing one index per row. The bush in the tilemap is in the 15th row, so we've omitted 15 IDs.
I also have a second project in TypeScript using a smaller Tilemap.