me.Tile(x, y, gid, tileset)

new Tile(x, y, gid, tileset)

a basic tile object

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 me.TMXTileset

the corresponding tileset object

Extends

Members

flipped :Boolean

Global flag that indicates if the tile is flipped

flippedAD :Boolean

True if the tile is flipped anti-diagonally

flippedY :Boolean

True if the tile is flipped vertically

flipX :Boolean

True if the tile is flipped horizontally

tileId :Number

tileId

tileset :me.TMXTileset

tileset

Methods

getRenderable(settingsopt) → {me.Renderable}

return a renderable object for this Tile object

Parameters:
Name Type Attributes Description
settings Object <optional>

see me.Sprite

Returns:
me.Renderable -

a me.Sprite object