Skip to content

1681-engine / index / parseTiled

Function: parseTiled() ​

ts
function parseTiled(json): TileMap;

Defined in: src/tilemap/tiled.ts:235

Reads a Tiled JSON map (already parsed with JSON.parse). Throws a Tiled map: … error saying what is wrong.

Parameters ​

ParameterType
jsonunknown

Returns ​

TileMap

Released under the MIT License.