Skip to content

Commit 4d77ea4

Browse files
author
Thomas
committed
changed game width
1 parent 76b3c4f commit 4d77ea4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

1-introduction/hello-world/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
// This initialise Phaser
33
// Parameters: width of the game, height of the game, how to render the game, the name of the div in the html that will contain the game
4-
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'game_div');
4+
var game = new Phaser.Game(500, 600, Phaser.AUTO, 'game_div');
55

66
// An array to store the different states of our game (play, menu, credits, etc.)
77
var game_state = {};
@@ -23,7 +23,7 @@ game_state.play.prototype = {
2323

2424
// Display a sprite on the screen
2525
// Parameters: x position, y position, name of the sprite
26-
hello_sprite = game.add.sprite(200, 300, 'hello');
26+
hello_sprite = game.add.sprite(250, 300, 'hello');
2727
},
2828

2929
update: function() {

0 commit comments

Comments
 (0)