mirror of
https://github.com/photonstorm/phaser
synced 2024-11-28 07:31:11 +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:
|
||||
*
|
||||
* ```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);
|
||||
* ```
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue