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#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#scanned

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

Tile#rotation

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

Tile#right

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

Tile#resetCollision()

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

Tile#properties

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

Tile#left

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

Tile#layer

layer : Object The layer in the Tilemap data that this tile belongs to. Source code: tilemap/Tile.js (Line 24)

Tile#isInteresting()

isInteresting(collides, faces) → {boolean} Is this tile interesting? Parameters Name Type Description collides boolean If true will check any collides value. faces boolean If true will check any face value. Returns boolean - True if the Tile is interesting, otherwise false. Source code: tilemap/Tile.js (Line 275)