Heavily optimised PixiShader.

This commit is contained in:
photonstorm
2013-11-26 05:13:56 +00:00
parent 86584a636c
commit 141337bed9
11 changed files with 222 additions and 301 deletions
+13 -1
View File
@@ -1190,15 +1190,25 @@ Phaser.Group.prototype = {
*
* @method Phaser.Group#remove
* @param {Any} child - The child to remove.
* @return {boolean} true if the child was removed from this Group, otherwise false.
*/
remove: function (child) {
if (child.group !== this)
{
return false;
}
if (child.events)
{
child.events.onRemovedFromGroup.dispatch(child, this);
}
this._container.removeChild(child);
// Check it's actually in the container
if (child.parent === this._container)
{
this._container.removeChild(child);
}
if (this.cursor == child)
{
@@ -1214,6 +1224,8 @@ Phaser.Group.prototype = {
child.group = null;
return true;
},
/**