Preparing to merge new examples.

This commit is contained in:
photonstorm
2013-10-07 22:15:28 +01:00
parent d4149a8f9a
commit 1bc6ac25fa
3 changed files with 19 additions and 5 deletions
+10 -2
View File
@@ -807,7 +807,7 @@ Phaser.Group.prototype = {
*/
countLiving: function () {
var total = -1;
var total = 0;
if (this._container.children.length > 0 && this._container.first._iNext)
{
@@ -824,6 +824,10 @@ Phaser.Group.prototype = {
}
while (currentNode != this._container.last._iNext);
}
else
{
total = -1;
}
return total;
@@ -837,7 +841,7 @@ Phaser.Group.prototype = {
*/
countDead: function () {
var total = -1;
var total = 0;
if (this._container.children.length > 0 && this._container.first._iNext)
{
@@ -854,6 +858,10 @@ Phaser.Group.prototype = {
}
while (currentNode != this._container.last._iNext);
}
else
{
total = -1;
}
return total;
+1 -1
View File
@@ -298,7 +298,7 @@ Phaser.Sprite.prototype = Object.create(PIXI.Sprite.prototype);
Phaser.Sprite.prototype.constructor = Phaser.Sprite;
/**
* Automatically called by World.update. You can create your own update in Objects that extend Phaser.Sprite.
* Automatically called by World.preUpdate. You can create your own update in Objects that extend Phaser.Sprite.
* @method Phaser.Sprite.prototype.preUpdate
*/
Phaser.Sprite.prototype.preUpdate = function() {