Tutorial by Examples

You first must create a "Game" object in Phaser. var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', { preload: preload, create: create }); In the preload callback function load the image. function preload() { game.load.image('thing', 'assets/thing-image.png'); ...

Page 1 of 1