TiledMapOptions
What readTiledMap takes.
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
pixelsPerMetre? |
number |
16 |
Pixels a metre, for a map that draws no tile; one that does takes its tile sets’. |
plane? |
"ground" | "side" | Plane2D |
Plane2D.Ground |
The plane the map lies in, as the scene’s Camera2D names it. |
position? |
Position |
[0, 0, 0] |
Where Tiled’s (0, 0), the map’s top-left corner, stands. |
tileSets |
Readonly<Record<string, TileSet>> |
undefined |
Each tile set the map names, keyed by its name in Tiled, or by its external file, grass for ../tilesets/grass.tsj or the source path whole where two files share a name. An external file’s handle carries its .tsj as data. |