Tile

A single tile within a tile layer.

Note:

Tile objects are not directly constructable. They are obtained from TileLayer methods.

Properties


NameDescriptionType
layerThe layer this tile belongs toTileLayer
srcThe source rectangle of the tile within the tileset textureRect
dstThe destination rectangle of the tile within the tile mapRect
colliderA fitted rectangle of the tile within the tile mapRect
h_flipWhether the tile is horizontally flippedbool
v_flipWhether the tile is vertically flippedbool
anti_diag_flipWhether the tile is anti-diagonally flippedbool
angleThe rotation angle of the tile in degreesfloat