phaser - v4.0.0-rc.4
    Preparing search index...
    • Gets the tiles in the given rectangular area (in world coordinates) of the layer.

      Parameters

      • worldX: number

        The world x coordinate for the top-left of the area.

      • worldY: number

        The world y coordinate for the top-left of the area.

      • width: number

        The width of the area.

      • height: number

        The height of the area.

      • filteringOptions: FilteringOptions

        Optional filters to apply when getting the tiles.

      • camera: Cameras.Scene2D.Camera

        The Camera to use when factoring in which tiles to return.

      • layer: LayerData

        The Tilemap Layer to act upon.

      Returns Tile[]