class Example extends Phaser.Scene { preload () { this.load.setBaseURL('https://cdn.phaserfiles.com/v385'); this.load.image('bar', 'assets/sprites/flectrum.png'); } create () { const group = this.add.group({ key: 'bar', frameQuantity: 32, setXY: { x: 400, y: 300 }, setRotation: { value: 0, step: 0.1 }, setScale: { x: 1, y: 2, stepY: 0.1 } }); } } const config = { type: Phaser.AUTO, width: 800, height: 600, backgroundColor: '#2d2d2d', parent: 'phaser-example', scene: Example }; const game = new Phaser.Game(config);
Scan to open on your mobile device
class Example extends Phaser.Scene { preload () { this.load.setBaseURL('https://cdn.phaserfiles.com/v385'); this.load.image('bar', 'assets/sprites/flectrum.png'); } create () { const group = this.add.group({ key: 'bar', frameQuantity: 32, setXY: { x: 400, y: 300 }, setRotation: { value: 0, step: 0.1 }, setScale: { x: 1, y: 2, stepY: 0.1 } }); } } const config = { type: Phaser.AUTO, width: 800, height: 600, backgroundColor: '#2d2d2d', parent: 'phaser-example', scene: Example }; const game = new Phaser.Game(config);