slow, unreliable) • Lightweight. Not a game-engine. No sounds, physics. Just rendering. (Phaser is more fully featured) • Javascript. I already know JS
sucks) • WebGL debugging tools are bad • Javascript Exception Reporting (cant see stack locals) • You need an all-in-one package (rendering + physics + sounds + tilemaps + editors)
let texture = PIXI.utils.TextureCache["circle.png"] let circle = new PIXI.Sprite(texture) circle.anchor.set(0.5) circle.position.set(window.innerWidth / 2, window.innerHeight / 2) app.stage.addChild(circle) }
setupLayers() circle = createCircle() layers.circlesContainer.addChild(circle) for (var i = 0; i < 10; i++) { let square = createSquare() let randomX = Math.floor(Math.random() * window.innerWidth) let randomY = Math.floor(Math.random() * window.innerHeight) square.position.set(randomX, randomY) layers.squaresContainer.addChild(square) }