Updated to PixiJS v5.
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
document.body.appendChild(app.view)
|
||||
|
||||
// ex, add display objects
|
||||
const sprite = PIXI.Sprite.fromImage('./assets/app-circle.png')
|
||||
const sprite = PIXI.Sprite.from('./assets/app-circle.png')
|
||||
sprite.scale.set(.3, .3)
|
||||
app.stage.addChild(sprite)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user