diff --git a/README.md b/README.md index 275f06c..50615e3 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ document.body.appendChild(app.view); // load the texture we need -PIXI.loader.add('bunny', 'bunny.png').load((loader, resources) => { +PIXI.Loader.shared.add('bunny', 'bunny.png').load((loader, resources) => { // This creates a texture from a 'bunny.png' image const bunny = new PIXI.Sprite(resources.bunny.texture);