Tilemap#getTileRight()

getTileRight(layer, x, y)

Gets the tile to the right of the tile coordinates given.
Mostly used as an internal function by calculateFaces.

Parameters
Name Type Description
layer number

The local layer index to get the tile from. Can be determined by Tilemap.getLayer().

x number

The x coordinate to get the tile from. In tiles, not pixels.

y number

The y coordinate to get the tile from. In tiles, not pixels.

Source code: tilemap/Tilemap.js (Line 1203)
doc_phaser
2017-02-14 11:15:20
Comments
Leave a Comment

Please login to continue.