var config = { type: Phaser.WEBGL, parent: 'phaser-example', scene: { preload: preload, create: create } }; var game = new Phaser.Game(config); function preload() { this.load.image('atari', 'assets/sprites/atari130xe.png'); } function create() { var blitter = this.add.blitter(0, 0, 'atari'); blitter.create(0, 0); blitter.create(200, 50); blitter.create(400, 100); blitter.create(600, 150); }
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('atari', 'assets/sprites/atari130xe.png'); } function create() { var blitter = this.add.blitter(0, 0, 'atari'); blitter.create(0, 0); blitter.create(200, 50); blitter.create(400, 100); blitter.create(600, 150); }