Cleaned the examples and the src a bit, plus docs

This commit is contained in:
alvinsight 2014-02-06 18:05:23 +00:00
parent 3bfa2e2455
commit 2134e4f30c
27 changed files with 202 additions and 184 deletions

View file

@ -24,10 +24,11 @@
// add the renderer view element to the DOM
document.body.appendChild(renderer.view);
requestAnimFrame( animate );
requestAnimFrame(animate);
// create a texture from an image path
var texture = PIXI.Texture.fromImage("bunny.png");
// create a new Sprite using the texture
var bunny = new PIXI.Sprite(texture);
@ -45,10 +46,9 @@
requestAnimFrame( animate );
// just for fun, lets rotate mr rabbit a little
// just for fun, let's rotate mr rabbit a little
bunny.rotation += 0.1;
// console.log(stage.getBounds().width);
// render the stage
renderer.render(stage);
}