Skip to content

Commit a2ab924

Browse files
author
Thomas
committed
small tweaks
1 parent 263b9fd commit a2ab924

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

1-introduction/hello-world.zip

4 Bytes
Binary file not shown.

1-introduction/hello-world/main.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
2-
// This initialise Phaser
1+
// We start by initializing Phaser
32
// 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
43
var game = new Phaser.Game(500, 600, Phaser.AUTO, 'game_div');
54

6-
// An array to store the different states of our game. A state is a specific scene of a game like a menu, a game over screen, etc.
5+
// This is an array to store the different states of our game. A state is a specific scene of a game like a menu, a game over screen, etc.
76
var game_state = {};
87

9-
// Let's define our first state. I'll call it 'main' since we only have one.
8+
// And now we define our first and only state, I'll call it 'main'
109
game_state.main = function(game) { };
1110
game_state.main.prototype = {
1211

0 commit comments

Comments
 (0)