Class: TMXObject

me. TMXObject

new TMXObject()

a TMX Object defintion, as defined in Tiled.
note : object definition are translated into the virtual `me.game.world` using `me.Entity`.
Source:
TMXObject.js, line 21
See:

Extends

  • Object

Members

<static> gid :Number

object gid value when defined the object is a tiled object
Type:
  • Number
Source:
TMXObject.js, line 90

<static> height :Number

object height
Type:
  • Number
Source:
TMXObject.js, line 81

<static> id :Number

object unique identifier per level (Tiled 0.11.x+)
Type:
  • Number
Source:
TMXObject.js, line 118

<static> isEllipse :Boolean

if true, the object is an Ellipse
Type:
  • Boolean
Source:
TMXObject.js, line 145

<static> isPolygon :Boolean

if true, the object is a Polygon
Type:
  • Boolean
Source:
TMXObject.js, line 154

<static> isPolyLine :Boolean

if true, the object is a PolyLine
Type:
  • Boolean
Source:
TMXObject.js, line 163

<static> name :String

object name
Type:
  • String
Source:
TMXObject.js, line 36

<static> orientation :String

object orientation (orthogonal or isometric)
Type:
  • String
Source:
TMXObject.js, line 127

<static> points :Array.<Vector2d>

object point list (for Polygon and PolyLine)
Type:
  • Array.<Vector2d>
Source:
TMXObject.js, line 27

<static> rotation :Number

The rotation of the object in radians clockwise (defaults to 0)
Type:
  • Number
Source:
TMXObject.js, line 109

<static> shapes :Array

the collision shapes defined for this object
Type:
  • Array
Source:
TMXObject.js, line 136

<static> type :String

object type
Type:
  • String
Source:
TMXObject.js, line 100

<static> width :Number

object width
Type:
  • Number
Source:
TMXObject.js, line 72

<static> x :Number

object x position
Type:
  • Number
Source:
TMXObject.js, line 45

<static> y :Number

object y position
Type:
  • Number
Source:
TMXObject.js, line 54

<static> z :Number

object z order
Type:
  • Number
Source:
TMXObject.js, line 63