phaser - v4.0.0-rc.4
    Preparing search index...
    • Gets a tile at the given tile coordinates from the given layer.

      Parameters

      • tileX: number

        X position to get the tile from (given in tile units, not pixels).

      • tileY: number

        Y position to get the tile from (given in tile units, not pixels).

      • nonNull: boolean

        For empty tiles, return a Tile object with an index of -1 instead of null.

      • layer: LayerData

        The Tilemap Layer to act upon.

      Returns Tile