TileLayer represents a grid of tiles within the map. Access via the 'tilemap' submodule.
Inherits from Layer.
| Name | Description | Type |
|---|---|---|
opacity | Layer opacity from 0.0 to 1.0. | float |
tiles | TileLayerTileList of tiles in the layer grid. | TileLayer.TileLayerTileList |
get_from_area(area: Rect) → list[TileLayer.TileResult]get_from_area(area: Rect) → list[TileLayer.TileResult]Return tiles intersecting a Rect area.
Args
area : World-space area to query.Returns
list[TileLayer.TileResult] : List of TileResult entries for tiles intersecting the area.
get_from_point(position: Vec2) → objectget_from_point(position: Vec2) → objectReturn the tile at a given world position.
Args
position : World-space position to query.Returns
Optional[TileLayer.TileResult] : TileResult entry if a tile exists at the position, None otherwise.