Adjust size and player sprite

This commit is contained in:
Marc Di Luzio 2015-01-31 16:45:24 +00:00
parent e82e8c859d
commit 9a3107c06a

View file

@ -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