Skip to content

Commit 31d0d39

Browse files
committed
Merge pull request phaserjs#2075 from fonsecas72/patch-1
fix tutorial doc
2 parents f8ef567 + e303fcb commit 31d0d39

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

resources/tutorials/02 Making your first game/tutorial.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ <h3>Create a Sprite</h3>
7171

7272
<h3>World Building</h3>
7373

74-
Under the hood game.add.sprite is creating a new <a href="http://docs.phaser.io/Phaser.Sprite.html">Phaser.Sprite</a> 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.
74+
Under the hood game.add.sprite is creating a new <a href="http://docs.phaser.io/Phaser.Sprite.html">Phaser.Sprite</a> 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.
7575

7676
<strong>Note:</strong> 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.
7777

@@ -287,9 +287,9 @@ <h3>Finishing touches</h3>
287287

288288
The scoreText is set-up in the create function:
289289

290-
<pre class="lang:js decode:true">scoreText = game.add.text(16, 16, 'score: 0', { fontSize: '32px', fill: '#000' });</pre>
290+
<pre class="lang:js decode:true">scoreText = game.add.text(16, 16, 'Score: 0', { fontSize: '32px', fill: '#000' });</pre>
291291

292-
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:
292+
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:
293293

294294
<pre class="lang:js decode:true">function collectStar (player, star) {
295295

0 commit comments

Comments
 (0)