mirror of
https://github.com/wassname/phaser.git
synced 2026-06-27 16:10:15 +08:00
jsdoc blocks added to every file and tidied up.
This commit is contained in:
@@ -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
@@ -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 () {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user