/** * Generated from the Phaser Sandbox * * //phaser.io/sandbox/EIjLwZcy * * This source requires Phaser 2.6.2 */ var game = new Phaser.Game(600, 450, Phaser.AUTO, '', { preload: preload, create: create, update: update, render: render }); function preload() { game.load.baseURL = 'http://examples.phaser.io/assets/'; game.load.crossOrigin = 'anonymous'; game.load.image('phaser', 'sprites/phaser-dude.png'); } function create() { var sprite = game.add.sprite(100, 100, 'phaser'); } function update() { } function render() { }