Phaser API Documentation

  Version: 
<static> IsInLayerBounds(tileX, tileY, layer)

Description:

Checks if the given tile coordinates are within the bounds of the layer.

Parameters:

name type description
tileX number

The x coordinate, in tiles, not pixels.

tileY number

The y coordinate, in tiles, not pixels.

layer Phaser.Tilemaps.LayerData

The Tilemap Layer to act upon.

Returns:
Description:

true if the tile coordinates are within the bounds of the layer, otherwise false.

Type:
  • boolean
Since: 3.0.0