Tweaked the LightsPlugin example in its class description.

This commit is contained in:
Chris Andrew 2018-06-13 18:56:57 +01:00
parent 124b0ff773
commit 468b61da6f

View file

@ -17,7 +17,10 @@ var PluginCache = require('../../plugins/PluginCache');
* Add Lights using the {@link Phaser.GameObjects.LightsManager#addLight} method: * Add Lights using the {@link Phaser.GameObjects.LightsManager#addLight} method:
* *
* ```javascript * ```javascript
* // Create a Light at [400, 300] and a radius of 200. * // Enable the Lights Manager because it is disabled by default
* this.lights.enable();
*
* // Create a Light at [400, 300] with a radius of 200
* this.lights.addLight(400, 300, 200); * this.lights.addLight(400, 300, 200);
* ``` * ```
* *