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

      Parameters

      • worldX: number

        X position to get the tile from (given in pixels)

      • worldY: number

        Y position to get the tile from (given in pixels)

      • nonNull: boolean

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

      • camera: Cameras.Scene2D.Camera

        The Camera to use when calculating the tile index from the world values.

      • layer: LayerData

        The Tilemap Layer to act upon.

      Returns Tile