Tile
class Tile extends Bounds
a basic tile object
Constructor
new Tile(x: number, y: number, gid: number, tileset: TMXTileset) → {}
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 | TMXTileset |
the corresponding tileset object |
Summary
Properties from Tile
Methods from Tile
Properties inherited from Bounds
Methods inherited from Bounds
|
|
|
|
|
|
|
|
|
|
reset the bound |
|
Bounds |
|
boolean |
|
boolean |
|
boolean |
|
|
|
|
|
Polygon |
|
|
|
|
Public Properties
Public Methods
getRenderable(settings: object) → {Renderable}
return a renderable object for this Tile object
Name | Type | Attributes | Description |
---|---|---|---|
settings | object |
<optional> |
see Sprite |
Type | Description |
---|---|
Renderable |
a me.Sprite object |