CCCPaste

Phaser 3 minimal JS

const config = {
  type: Phaser.AUTO,
  parent: "game",
  width: 800,
  height: 600,
  scene: {
    preload: preload,
    update: update,
    create: create
  }
};

const game = new Phaser.Game(config);

function preload (){

}

function create (){

}

function update(){

}