From 0a98bb67d8c32263e095e30ddeac79a507e2caf1 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Tue, 1 Oct 2013 15:05:30 +0100 Subject: [PATCH] jsdoc blocks added to every file and tidied up. --- examples/games/breakout.php | 8 ++++---- src/core/Stage.js | 2 +- src/sound/Sound.js | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/examples/games/breakout.php b/examples/games/breakout.php index be67307e..def89f91 100644 --- a/examples/games/breakout.php +++ b/examples/games/breakout.php @@ -129,7 +129,7 @@ } else { - livesText.text = 'lives: ' + lives; + livesText.content = 'lives: ' + lives; ballOnPaddle = true; ball.body.velocity.setTo(0, 0); ball.x = paddle.x + 16; @@ -143,7 +143,7 @@ ball.body.velocity.setTo(0, 0); - introText.text = "Game Over!"; + introText.content = "Game Over!"; introText.visible = true; } @@ -155,14 +155,14 @@ score += 10; - scoreText.text = 'score: ' + score; + scoreText.content = 'score: ' + score; // Are they any bricks left? if (bricks.countLiving() == 0) { // New level starts score += 1000; - scoreText.text = 'score: ' + score; + scoreText.content = 'score: ' + score; introText = '- Next Level -'; // Let's move the ball back to the paddle diff --git a/src/core/Stage.js b/src/core/Stage.js index 269243b2..a20df7a8 100644 --- a/src/core/Stage.js +++ b/src/core/Stage.js @@ -129,7 +129,7 @@ Phaser.Stage.prototype = { *//** * Set * @param {string} The background color you want the stage to have -*/. +*/ Object.defineProperty(Phaser.Stage.prototype, "backgroundColor", { get: function () { diff --git a/src/sound/Sound.js b/src/sound/Sound.js index a109093e..11c0998f 100644 --- a/src/sound/Sound.js +++ b/src/sound/Sound.js @@ -282,7 +282,6 @@ Phaser.Sound.prototype = { * @param {Description} stop - Description. * @param {Description} volume - Description. * @param {Description} loop - Description. - */ addMarker: function (name, start, stop, volume, loop) { volume = volume || 1;