jsdoc blocks added to every file and tidied up.

This commit is contained in:
Richard Davey
2013-10-01 15:05:30 +01:00
parent 305b12d76b
commit 0a98bb67d8
3 changed files with 5 additions and 6 deletions
+4 -4
View File
@@ -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
+1 -1
View File
@@ -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 () {
-1
View File
@@ -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;