intersects(x, y, right, bottom) Check for intersection with this tile. Parameters
collisionCallback : Function Tile collision callback. Source code:
width : number The width of the tile in pixels. Source code:
setCollision(left, right, up, down) Sets the collision flags for each side of this tile and updates the interesting faces list.
copy(tile) Copies the tile data and properties from the given tile to this tile. Parameters
isInteresting(collides, faces) → {boolean} Is this tile interesting? Parameters
collideDown : boolean Indicating collide with any object on the bottom. Source
collideLeft : boolean Indicating collide with any object on the left. Source
centerX Properties: Name Type Description
[readonly] bottom : number The sum of the y and height properties.
Page 1 of 4