Adjust size and player sprite
This commit is contained in:
parent
e82e8c859d
commit
9a3107c06a
1 changed files with 6 additions and 4 deletions
10
js/game.js
10
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
|
||||
|
|
Loading…
Add table
Reference in a new issue