Class: Tile

me. Tile

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
Source:
TMXTile.js, line 30

Extends

Members

flipped :Boolean

Global flag that indicates if the tile is flipped
Type:
  • Boolean
Source:
TMXTile.js, line 95

flippedAD :Boolean

True if the tile is flipped anti-diagonally
Type:
  • Boolean
Source:
TMXTile.js, line 87

flippedY :Boolean

True if the tile is flipped vertically
Type:
  • Boolean
Source:
TMXTile.js, line 80

flipX :Boolean

True if the tile is flipped horizontally
Type:
  • Boolean
Source:
TMXTile.js, line 73

tileId :int

tileId
Type:
  • int
Source:
TMXTile.js, line 66

tileset :me.TMXTileset

tileset
Type:
Source:
TMXTile.js, line 48

Methods

getRenderable(settings) → {me.Renderable}

return a renderable object for this Tile object
Parameters:
Name Type Argument Description
settings Object <optional>
see me.Sprite
Source:
TMXTile.js, line 148
Returns:
a me.Sprite object
Type
me.Renderable