Tile#left

[readonly] left : number The x value in pixels. Source code: tilemap/Tile.js (Line 357)

Tile#properties

properties : Object Tile specific properties. Source code: tilemap/Tile.js (Line 89)

Tile#resetCollision()

resetCollision() Reset collision status flags. Source code: tilemap/Tile.js (Line 256)

Tile#right

[readonly] right : number The sum of the x and width properties. Source code: tilemap/Tile.js (Line 370)

Tile#rotation

rotation : number The rotation angle of this tile. Source code: tilemap/Tile.js (Line 44)

Tile#scanned

scanned : boolean Has this tile been walked / turned into a poly? Source code: tilemap/Tile.js (Line 94)

Tile#setCollision()

setCollision(left, right, up, down) Sets the collision flags for each side of this tile and updates the interesting faces list. Parameters Name Type Description left boolean Indicating collide with any object on the left. right boolean Indicating collide with any object on the right. up boolean Indicating collide with any object on the top. down boolean Indicating collide with any object on the bottom. Source code: tilemap/Tile.js (Line 233)

Tile#setCollisionCallback()

setCollisionCallback(callback, context) Set a callback to be called when this tile is hit by an object.The callback must true true for collision processing to take place. Parameters Name Type Description callback function Callback function. context object Callback will be called within this context. Source code: tilemap/Tile.js (Line 205)

Tile#Tile

new Tile(layer, index, x, y, width, height) A Tile is a representation of a single tile within the Tilemap. Parameters Name Type Description layer object The layer in the Tilemap data that this tile belongs to. index number The index of this tile type in the core map data. x number The x coordinate of this tile. y number The y coordinate of this tile. width number Width of the tile. height number Height of the tile. Source code: tilemap/Tile.js (Line 19)

Tile#top

[readonly] top : number The y value. Source code: tilemap/Tile.js (Line 383)