mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
Tweaked the LightsPlugin example in its class description.
This commit is contained in:
parent
124b0ff773
commit
468b61da6f
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue