Skip to content

Commit

Permalink
Add Vue.js Hello world example for the main scene
Browse files Browse the repository at this point in the history
  • Loading branch information
jdnichollsc authored Jun 22, 2019
1 parent 67b49c0 commit 306f237
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,25 @@ export default {
width: "100%",
height: "100%",
type: Phaser.AUTO,
scene: {}
scene: {
init: function() {
this.cameras.main.setBackgroundColor('#24252A')
},
create: function() {
this.helloWorld = this.add.text(
this.cameras.main.centerX,
this.cameras.main.centerY,
"Hello World", {
font: "40px Arial",
fill: "#ffffff"
}
);
this.helloWorld.setOrigin(0.5);
},
update: function() {
this.helloWorld.angle += 1;
}
}
}
}
}
Expand Down

0 comments on commit 306f237

Please sign in to comment.