Returns the bounds in the given layer that are within the camera's viewport. This is used internally by the cull tiles function.
name | type | description |
---|---|---|
layer | Phaser.Tilemaps.LayerData |
The Tilemap Layer to act upon. |
camera | Phaser.Cameras.Scene2D.Camera |
The Camera to run the cull check against. |
An object containing the left
, right
, top
and bottom
bounds.