Skip to content

Commit 0a98bb6

Browse files
committed
jsdoc blocks added to every file and tidied up.
1 parent 305b12d commit 0a98bb6

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

examples/games/breakout.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function ballLost () {
129129
}
130130
else
131131
{
132-
livesText.text = 'lives: ' + lives;
132+
livesText.content = 'lives: ' + lives;
133133
ballOnPaddle = true;
134134
ball.body.velocity.setTo(0, 0);
135135
ball.x = paddle.x + 16;
@@ -143,7 +143,7 @@ function gameOver () {
143143

144144
ball.body.velocity.setTo(0, 0);
145145

146-
introText.text = "Game Over!";
146+
introText.content = "Game Over!";
147147
introText.visible = true;
148148

149149
}
@@ -155,14 +155,14 @@ function ballHitBrick (_ball, _brick) {
155155

156156
score += 10;
157157

158-
scoreText.text = 'score: ' + score;
158+
scoreText.content = 'score: ' + score;
159159

160160
// Are they any bricks left?
161161
if (bricks.countLiving() == 0)
162162
{
163163
// New level starts
164164
score += 1000;
165-
scoreText.text = 'score: ' + score;
165+
scoreText.content = 'score: ' + score;
166166
introText = '- Next Level -';
167167

168168
// Let's move the ball back to the paddle

src/core/Stage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Phaser.Stage.prototype = {
129129
*//**
130130
* Set
131131
* @param {string} The background color you want the stage to have
132-
*/.
132+
*/
133133
Object.defineProperty(Phaser.Stage.prototype, "backgroundColor", {
134134

135135
get: function () {

src/sound/Sound.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ Phaser.Sound.prototype = {
282282
* @param {Description} stop - Description.
283283
* @param {Description} volume - Description.
284284
* @param {Description} loop - Description.
285-
*/
286285
addMarker: function (name, start, stop, volume, loop) {
287286
288287
volume = volume || 1;

0 commit comments

Comments
 (0)