Creates a tilemap entity.
The game instance this tilemap belongs to.
Configuration options for the tilemap.
Readonly
childrenOptional
eachProtected
gameProtected
rapidStatic
Readonly
DEFAULT_Static
Readonly
EMPTY_Adds a child entity to this entity.
The entity to add as a child.
Collects renderable entities, excluding children unless they override onRender.
The array to collect renderable entities.
Disposes of the entity and its children.
Fills a rectangular area with a specified tile ID.
The tile ID to use for filling.
The starting X coordinate.
The starting Y coordinate.
The width of the fill area.
The height of the fill area.
Finds descendant entities matching a predicate.
Function to test each entity.
If true, returns only the first match; otherwise, returns all matches.
A single entity, an array of entities, or null if no matches are found.
Gets the parent transform or the renderer's matrix stack if no parent exists.
The transform matrix stack.
Gets the tile ID at the specified map coordinates.
The X coordinate (column) on the map.
The Y coordinate (row) on the map.
The tile ID (number or string) or undefined if coordinates are out of bounds.
Converts local coordinates to map coordinates.
The local coordinates to convert.
Converts map coordinates to local coordinates.
The map coordinates to convert.
Protected
onHook for custom update logic.
Time elapsed since the last update in seconds.
Protected
postHook for custom cleanup logic before disposal.
Removes a tile at the specified map coordinates (sets it to EMPTY_TILE).
The X coordinate (column) on the map.
The Y coordinate (row) on the map.
True if the tile was removed successfully, false if coordinates are out of bounds.
Replaces the entire tilemap data and updates dimensions.
The new 2D array of tile data.
Sets a tile at the specified map coordinates.
The X coordinate (column) on the map.
The Y coordinate (row) on the map.
The tile ID to set (number or string).
True if the tile was set successfully, false if coordinates are out of bounds.
Updates the entity and its children.
Time elapsed since the last update in seconds.
Updates the entity's transform, optionally updating parent transforms.
If true, recursively updates parent transforms.
Tilemap entity for rendering tiled maps.