initialises a new instance of a Tilemap.
Configuration properties for the tilemap.
ReadonlyactionsActions advanced for this object as active game time elapses.
2D array of tile indices.
ReadonlyidUnique identifier for the game object.
The source image for the tileset.
Number of columns in the tileset image.
Tile size in pixels.
Static_Static helper for tests to bypass Registry circularity if mocked.
The bounds component for this object, defining its physical area.
The tag component for this object, managing its name and rendering order.
The transform component for this object, managing position and scale.
Adds a component to this game object.
The component instance to add.
Removes this object from the active scene or global engine loop.
Emits a custom event on this object's event bus.
The event type.
Optionaldetail: unknown
Optional data to pass with the event.
Retrieves a component from this object by its class.
The class of the component to retrieve.
The component instance, or undefined if not found.
Checks if this object has a component of the specified class.
The class to check for.
True if the component exists.
Stops listening for an event on this object's event bus.
The event type.
The function to remove.
Listens for an event on this object's event bus.
The event type.
The function to run when the event occurs.
Registers this object with the active scene or global engine loop.
Removes a component from this game object by its class.
The class of the component to remove.
StaticfromCreates a tilemap from a finite orthogonal Tiled JSON export.
StaticimportImports a finite orthogonal Tiled JSON map with square, numeric tile layers and point or rectangle object layers. Each tile layer produces one Tilemap per atlas used by its cells. Load atlas images and any external JSON tileset descriptors before calling this method. Objects and tile properties are returned as metadata for the game to interpret.
Represents a grid-based map rendered from a tileset.