Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextureCache Reference Out of Date #51

Open
andrew-wilcox opened this issue Feb 28, 2017 · 0 comments
Open

TextureCache Reference Out of Date #51

andrew-wilcox opened this issue Feb 28, 2017 · 0 comments

Comments

@andrew-wilcox
Copy link

function setup() {

  //Create the `cat` sprite
  var cat = new Sprite(resources["images/cat.png"].texture);

  //Change the sprite's position
  cat.x = 96;
  cat.y = 96;

  //Add the cat to the stage so you can see it
  stage.addChild(cat);

  //Render the stage
  renderer.render(stage);
}

(Note: In this example, Sprite is an alias for PIXI.Sprite, TextureCache is an alias for PIXI.utils.TextureCache, and resources is an alias for PIXI.loader.resources as described earlier. I'll be using alias that follow this same format for all Pixi objects and methods in the example code from now on.)

Here you refer to an instance of TextureCache that isn't present in the example you use. It's also a bit unclear if we should be using TextureCache at all or not, as you DO use it during the tileset example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant