Skip to content
Browse files

Merge pull request #2401 from markfinger/patch-1

Correct a reference error in the basic example
  • Loading branch information...
2 parents 6eb8c5a + 312a480 commit 039200b46d7840f065faa50739e4b98f69678db4 @GoodBoyDigital GoodBoyDigital 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 039200b

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