Optionalcallback: ArcadePhysicsCallbackCreate a visible tile layer from the map.
Optionaldepth: numberGet all layer names
Get a single spawn point by name.
Get tile at world position
Get the tilemap's world bounds (useful for camera bounds).
Load and create a tilemap from a Tiled JSON asset.
Remove a tile at a grid position
Replace a tile at a grid position
Set collision on a layer by tile property or index range.
Optionaloptions: { all?: boolean; indices?: number[]; property?: string }Optionalall?: booleanCollide on all non-empty tiles
Optionalindices?: number[]Collide on specific tile indices
Optionalproperty?: stringCollide on tiles with this property set to true in Tiled
Set alpha on a layer
Set depth (z-order) on a layer
Set parallax scroll factor on a layer for depth effect. Values < 1 scroll slower (background), > 1 scroll faster (foreground).
OptionalscrollFactorY: numberCheck if a tile at a position has a specific property
Add arcade physics collision between a game object and a tile layer.