Class: TMXTileset

me. TMXTileset

new TMXTileset(tileset)

a TMX Tile Set Object
Parameters:
Name Type Description
tileset Object tileset JSON definition
Source:
TMXTileset.js, line 23

Extends

Classes

Error

Members

<private> _lastUpdate :Map

Remember the last update timestamp to prevent too many animation updates
Type:
  • Map
Source:
TMXTileset.js, line 75

<private> animations :Map

Tileset animations
Type:
  • Map
Source:
TMXTileset.js, line 67

isAnimated :Boolean

Tileset contains animated tiles
Type:
  • Boolean
Source:
TMXTileset.js, line 59

Methods

contains(gid) → {Boolean}

return true if the gid belongs to the tileset
Parameters:
Name Type Description
gid Number
Source:
TMXTileset.js, line 155
Returns:
Type
Boolean

getTileProperties(tileId) → {Object}

return the properties of the specified tile
Parameters:
Name Type Description
tileId Number
Source:
TMXTileset.js, line 188
Returns:
Type
Object

getViewTileId(gid) → {Number}

Get the view (local) tile ID from a GID, with animations applied
Parameters:
Name Type Description
gid Number Global tile ID
Source:
TMXTileset.js, line 167
Returns:
View tile ID
Type
Number
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-.