Updated examples to reflect API change
This commit is contained in:
parent
ebd20c6de9
commit
a9927ae70b
2 changed files with 3 additions and 3 deletions
|
@ -25,8 +25,7 @@
|
||||||
var sprite= PIXI.Sprite.fromImage("spinObj_02.png");
|
var sprite= PIXI.Sprite.fromImage("spinObj_02.png");
|
||||||
//stage.addChild(sprite);
|
//stage.addChild(sprite);
|
||||||
// create a renderer instance
|
// create a renderer instance
|
||||||
// the 5the parameter is the anti aliasing
|
var renderer = PIXI.autoDetectRenderer(620, 380, null, false /* transparent */, true /* antialias */);
|
||||||
var renderer = PIXI.autoDetectRenderer(620, 380, null, false, true);
|
|
||||||
|
|
||||||
// set the canvas width and height to fill the screen
|
// set the canvas width and height to fill the screen
|
||||||
//renderer.view.style.width = window.innerWidth + "px";
|
//renderer.view.style.width = window.innerWidth + "px";
|
||||||
|
|
|
@ -32,7 +32,8 @@
|
||||||
|
|
||||||
// create a renderer instance
|
// create a renderer instance
|
||||||
|
|
||||||
var renderer = PIXI.autoDetectRenderer(400, 300,false,true);
|
var renderer = PIXI.autoDetectRenderer(400, 300, null, true, true);
|
||||||
|
|
||||||
|
|
||||||
// add the renderer view element to the DOM
|
// add the renderer view element to the DOM
|
||||||
document.body.appendChild(renderer.view);
|
document.body.appendChild(renderer.view);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue