diff --git a/js/game.js b/js/game.js index 8f45c20..db2a264 100644 --- a/js/game.js +++ b/js/game.js @@ -76,7 +76,7 @@ var eurecaClientSetup = function() { } // Create the game -var game = new Phaser.Game(600, 400, +var game = new Phaser.Game(800, 540, Phaser.AUTO, '', { preload: preload, @@ -115,7 +115,6 @@ Player = function(id, x, y) { // Create a sprite this.sprite = game.add.sprite(x, y, 'dude'); - this.sprite.frame = 4; // set alive this.alive = true; @@ -208,10 +207,13 @@ function preload() { game.scale.pageAlignVertically = true; // load the background - game.load.image("bg", "assets/bg.jpg"); + game.load.image("bg", "assets/bg.png"); + + // load the background + game.load.image("options", "assets/options.png"); // Load the dude - game.load.spritesheet('dude', 'assets/dude.png', 32, 48); + game.load.image('dude', 'assets/dude.png', 50, 50); } // Create the game