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 83

flippedAD :Boolean

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

flippedY :Boolean

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

flipX :Boolean

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

tileId :int

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

tileset :me.TMXTileset

tileset
Type:
Source:
TMXTile.js, line 33

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 136
Returns:
a me.Sprite object
Type
me.Renderable
Copyright © 2011 - 2017, Olivier Biot, Jason Oster, Aaron McLeod
Documentation generated by JSDoc 3.4.0 on 2017-02-28T11:37:41+08:00 using the DocStrap template modified by codename-.