Tile

class Tile extends Bounds

a basic tile object

Constructor


new Tile(x: number, y: number, gid: number, tileset: TMXTileset) → {}
Parameters:
Name Type Description
x number

x index of the Tile in the map

y number

y index of the Tile in the map

gid number

tile gid

tileset TMXTileset

the corresponding tileset object

Public Properties


flipped TMXTile.js:76
flipped: boolean

boolean

Global flag that indicates if the tile is flipped

flippedAD TMXTile.js:70
flippedAD: boolean

boolean

True if the tile is flipped anti-diagonally

flippedX TMXTile.js:58
flippedX: boolean

boolean

True if the tile is flipped horizontally

flippedY TMXTile.js:64
flippedY: boolean

boolean

True if the tile is flipped vertically

tileId TMXTile.js:52
tileId: number

number

tileId

tileset TMXTile.js:36
tileset: TMXTileset

TMXTileset

tileset

Public Methods


getRenderable TMXTile.js:117
getRenderable(settings: object) → {Renderable}

return a renderable object for this Tile object

Parameters:
Name Type Attributes Description
settings object

<optional>

see Sprite

Returns:
Type Description
Renderable

a me.Sprite object


Powered by webdoc!