From e303fcbdaad74c2ab5f68633ee49daebf3bd7f39 Mon Sep 17 00:00:00 2001 From: Hugo Fonseca Date: Sat, 5 Sep 2015 14:41:02 +0100 Subject: [PATCH] fix tutorial doc --- resources/tutorials/02 Making your first game/tutorial.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/tutorials/02 Making your first game/tutorial.html b/resources/tutorials/02 Making your first game/tutorial.html index 110f4c3e9..447f911bd 100644 --- a/resources/tutorials/02 Making your first game/tutorial.html +++ b/resources/tutorials/02 Making your first game/tutorial.html @@ -71,7 +71,7 @@ The order in which items are rendered in the display matches the order in which

World Building

-Under the hood game.add.sprite is creating a new Phaser.Sprite object and adding the sprite to the “game world”. This world is where all your objects live, it can be compared to the Stage in Actionscript3. +Under the hood game.add.sprite is creating a new Phaser.Sprite object and adding the sprite to the “game world”. This world is where all your objects live, it can be compared to the Stage in Actionscript3. Note: The game world has no fixed size and extends infinitely in all directions, with 0,0 being the center of it. For convenience Phaser places 0,0 at the top left of your game for you, but by using the built-in Camera you can move around as needed. @@ -287,9 +287,9 @@ var scoreText; The scoreText is set-up in the create function: -
scoreText = game.add.text(16, 16, 'score: 0', { fontSize: '32px', fill: '#000' });
+
scoreText = game.add.text(16, 16, 'Score: 0', { fontSize: '32px', fill: '#000' });
-16x16 is the coordinate to display the text at. 'score: 0' is the default string to display and the object that follows contains a font size and fill colour. By not specifying which font we'll actually use the browser will default, so on Windows it will be Arial. Next we need to modify the collectStar function so that when the player picks-up a star their score increases and the text is updated to reflect this: +16x16 is the coordinate to display the text at. 'Score: 0' is the default string to display and the object that follows contains a font size and fill colour. By not specifying which font we'll actually use the browser will default, so on Windows it will be Arial. Next we need to modify the collectStar function so that when the player picks-up a star their score increases and the text is updated to reflect this:
function collectStar (player, star) {