Skip to content
Snippets Groups Projects
game.js 407 B
Newer Older
import Phaser from 'phaser';
function preload ()
{
    this.load.image('404', 'http://labs.phaser.io/assets/sprites/phaser3-logo.png')
}
function create ()
{
    this.add.image(300, 400, '404')
}

let scene = {
    preload: preload,
    create: create
};

    type: Phaser.AUTO,
    width: 800,
    height: 600,
    scene: scene
};

let game = new Phaser.Game(config);