layer : Object The layer in the Tilemap data that this tile belongs to. Source
new Tile(layer, index, x, y, width, height) A Tile is a representation of a single tile within the Tilemap. Parameters
faceLeft : boolean Is the left of this tile an interesting edge? Source code:
setCollisionCallback(callback, context) Set a callback to be called when this tile is hit by an object.The callback must true
centerY Properties: Name Type Description
index : number The index of this tile within the map data corresponding to the tileset, or -1 if this represents a blank/null tile
faceRight : boolean Is the right of this tile an interesting edge? Source
height : number The height of the tile in pixels. Source code:
collisionCallbackContext : Object The context in which the collision callback will be called.
worldX Properties: Name Type Description
Page 4 of 4