Gets the tiles in the given rectangular area (in world coordinates) of the layer.
name | type | description |
---|---|---|
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 | Phaser.Types.Tilemaps.FilteringOptions |
Optional filters to apply when getting the tiles. |
camera | Phaser.Cameras.Scene2D.Camera |
The Camera to use when factoring in which tiles to return. |
layer | Phaser.Tilemaps.LayerData |
The Tilemap Layer to act upon. |
Array of Tile objects.