Initial commit 2.0 beta 0
This commit is contained in:
+15
-15
@@ -50,21 +50,21 @@ const app = new PIXIApp({
|
||||
app.setup()
|
||||
app.run()
|
||||
|
||||
let highlightBtn = new PIXI.Graphics();
|
||||
highlightBtn.lineStyle(2, 0x033792);
|
||||
highlightBtn.drawRoundedRect(15, 40, 30, 30, 10);
|
||||
highlightBtn.endFill();
|
||||
app.stage.addChild(highlightBtn);
|
||||
// let highlightBtn = new PIXI.Graphics();
|
||||
// highlightBtn.lineStyle(2, 0x033792);
|
||||
// highlightBtn.drawRoundedRect(15, 40, 30, 30, 10);
|
||||
// highlightBtn.endFill();
|
||||
// app.stage.addChild(highlightBtn);
|
||||
|
||||
// app.loadSprites("assets/app-circle.png", sprites => {
|
||||
// let circle = sprites.get("assets/app-circle.png")
|
||||
// circle.anchor.set(0.5)
|
||||
// circle.x = app.screen.width / 2
|
||||
// circle.y = app.screen.height / 2
|
||||
// circle.width = 80
|
||||
// circle.height = 80
|
||||
// app.scene.addChild(circle)
|
||||
// app.run()
|
||||
// })
|
||||
app.loadSprites("assets/app-circle.png", sprites => {
|
||||
let circle = sprites.get("assets/app-circle.png")
|
||||
circle.anchor.set(0.5)
|
||||
circle.x = app.screen.width / 2
|
||||
circle.y = app.screen.height / 2
|
||||
circle.width = 80
|
||||
circle.height = 80
|
||||
app.scene.addChild(circle)
|
||||
app.run()
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user