The subset of Tiled's JSON export this loader reads: embedded or external tilesets,
and uncompressed tile-layer data, in any of orthogonal, isometric or staggered
orientation - TileMap's own shape option is what actually draws the difference,
this only has to pick the right one. Base64/compressed layer data and Tiled's
hexagonal orientation (a different offset/axial convention than mwg's own flat-top
scheme - see mwg/core's Hex.ts) are still on the roadmap rather than read here yet -
each throws a clear error naming what was found, rather than silently loading something
wrong.
Load the JSON itself with mwg/assets's Resources.get, same as any other JSON asset;
this function only does the parsing.
The subset of Tiled's JSON export this loader reads: embedded or external tilesets, and uncompressed tile-layer data, in any of orthogonal, isometric or staggered orientation -
TileMap's ownshapeoption is what actually draws the difference, this only has to pick the right one. Base64/compressed layer data and Tiled's hexagonal orientation (a different offset/axial convention thanmwg's own flat-top scheme - seemwg/core'sHex.ts) are still on the roadmap rather than read here yet - each throws a clear error naming what was found, rather than silently loading something wrong.Load the JSON itself with
mwg/assets'sResources.get, same as any other JSON asset; this function only does the parsing.