var config = { type: Phaser.WEBGL, parent: 'phaser-example', scene: { preload: preload, create: create } }; var game = new Phaser.Game(config); function preload() { this.load.image('beball', 'assets/sprites/beball1.png'); this.load.image('atari', 'assets/sprites/atari400.png'); this.load.image('bikkuriman', 'assets/sprites/bikkuriman.png'); } function create() { this.add.sprite(200, 300, 'beball'); this.add.sprite(500, 300, 'atari'); this.add.sprite(800, 300, 'bikkuriman'); }
Scan to open on your mobile device
var config = { type: Phaser.WEBGL, parent: 'phaser-example', scene: { preload: preload, create: create } }; var game = new Phaser.Game(config); function preload() { this.load.image('beball', 'assets/sprites/beball1.png'); this.load.image('atari', 'assets/sprites/atari400.png'); this.load.image('bikkuriman', 'assets/sprites/bikkuriman.png'); } function create() { this.add.sprite(200, 300, 'beball'); this.add.sprite(500, 300, 'atari'); this.add.sprite(800, 300, 'bikkuriman'); }