Phaser API Documentation

  Version: 
<static> CheckIsoBounds(tileX, tileY, layer, [camera])

Description:

Checks if the given tile coordinate is within the isometric layer bounds, or not.

Parameters:

name type arguments 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 check against.

camera Phaser.Cameras.Scene2D.Camera <optional>

The Camera to run the cull check against.

Returns:
Description:

Returns true if the coordinates are within the iso bounds.

Type:
  • boolean
Since: 3.50.0