Answers for "phaser add image"

0

phaser add image

create() {
  // x and y are the image's center coordinates
  // so e.g. for a background you probably want to use
  // gameWidth / 2, gameHeight / 2
  const background = this.add.image(100, 100, 'background');
}
Posted by: Guest on June-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language