Skip to content

Commit

Permalink
✅ Remove world from init function in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanRoberts committed Apr 23, 2019
1 parent c375eea commit 8f6f4a1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var app = new PIXI.Application(width, height);
document.body.appendChild(app.view);

// Create a world container
var world = PIXI.shadows.init(app, world);
var world = PIXI.shadows.init(app);

// A function to combine different assets of your world object, but give them a common transform by using pixi-layers
// It is of course recommended to create a custom class for this, but this demo just shows the minimal steps required
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h2 id="usage"><a class="header-link" href="#usage"></a>Usage</h2>
<span class="hljs-built_in">document</span>.body.appendChild(app.view);

<span class="hljs-comment">// Create a world container</span>
<span class="hljs-keyword">var</span> world = PIXI.shadows.init(app, world);
<span class="hljs-keyword">var</span> world = PIXI.shadows.init(app);

<span class="hljs-comment">// A function to combine different assets of your world object, but give them a common transform by using pixi-layers</span>
<span class="hljs-comment">// It is of course recommended to create a custom class for this, but this demo just shows the minimal steps required</span>
Expand Down
2 changes: 1 addition & 1 deletion src/demos/basic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var app = new PIXI.Application(width, height);
document.body.appendChild(app.view);

// Create a world container
var world = PIXI.shadows.init(app, world);
var world = PIXI.shadows.init(app);

// A function to combine different assets of your world object, but give them a common transform by using pixi-layers
// It is of course recommended to create a custom class for this, but this demo just shows the minimal steps required
Expand Down
2 changes: 1 addition & 1 deletion src/demos/pixi-lights/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var app = new PIXI.Application(width, height);
document.body.appendChild(app.view);

// Initialise the shadows plugin
var world = PIXI.shadows.init(app, world);
var world = PIXI.shadows.init(app);

// A function to combine different assets of your world object, but give them a common transform by using pixi-layers
// It is of course recommended to create a custom class for this, but this demo just shows the minimal steps required
Expand Down

0 comments on commit 8f6f4a1

Please sign in to comment.