Phaser API Documentation

  Version: 
batchPointLight(light, camera, x0, y0, x1, y1, x2, y2, x3, y3, lightX, lightY)

Description:

Adds a Point Light Game Object to the batch, flushing if required.

Parameters:

name type description
light Phaser.GameObjects.PointLight

The Point Light Game Object.

camera Phaser.Cameras.Scene2D.Camera

The camera rendering the Point Light.

x0 number

The top-left x position.

y0 number

The top-left y position.

x1 number

The bottom-left x position.

y1 number

The bottom-left y position.

x2 number

The bottom-right x position.

y2 number

The bottom-right y position.

x3 number

The top-right x position.

y3 number

The top-right y position.

lightX number

The horizontal center of the light.

lightY number

The vertical center of the light.