Quotes help make search much faster. Example: "Practice Makes Perfect"

Monday, September 9, 2019

Codecademy Learn Phaser: Basics Start Making A Scene 6/12


//Sample Solution
// Create a create() function here:
function create() {
  this.add.text(100,170,"Spaze Invaydurs");
}

const config = {
type: Phaser.AUTO,
width: 450,
height: 600,
backgroundColor: "#a0a0dd",
  // Add in the scene information in the config here:
scene: {
  create
}
}

const game = new Phaser.Game(config)

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts