Skip to content
Browse files

Correct a reference error in the basic example

1 parent 6eb8c5a commit 312a48047120dcfb7cb7ebb566631fa3afd53a31 @markfinger markfinger committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.md
View
3 README.md
@@ -95,11 +95,12 @@ document.body.appendChild(renderer.view);
// You need to create a root container that will hold the scene you want to draw.
var stage = new PIXI.Container();
+var bunny;
// load the texture we need
PIXI.loader.add('bunny', 'bunny.png').load(function (loader, resources) {
// This creates a texture from a 'bunny.png' image.
- var bunny = new PIXI.Sprite(resources.bunny.texture);
+ bunny = new PIXI.Sprite(resources.bunny.texture);
// Setup the position and scale of the bunny
bunny.position.x = 400;

0 comments on commit 312a480

Please sign in to comment.
Something went wrong with that request. Please try again.