mirror of
https://github.com/wassname/phaser.git
synced 2026-07-05 17:30:19 +08:00
Brand new Grunt task - creates each core library as its own file and a combined phaser.js.
New build script now cleanly splits Phaser, Pixi and p2 so they are each UMD wrapped and each available in the global scope (now more requireJS friendly!). phaser-no-libs.js allows you to use your own version of p2.js or pixi.js with Phaser. Warning: This is totally unsupported. If you hit bugs, you fix them yourself. Fixed silly instanceof bug in game objects (sorry guys).
This commit is contained in:
@@ -211,7 +211,7 @@ Phaser.BitmapText.prototype.destroy = function(destroyChildren) {
|
||||
|
||||
if (this.parent)
|
||||
{
|
||||
if (this.parent.instanceof Phaser.Group)
|
||||
if (this.parent instanceof Phaser.Group)
|
||||
{
|
||||
this.parent.remove(this);
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ Phaser.Graphics.prototype.destroy = function(destroyChildren) {
|
||||
|
||||
if (this.parent)
|
||||
{
|
||||
if (this.parent.instanceof Phaser.Group)
|
||||
if (this.parent instanceof Phaser.Group)
|
||||
{
|
||||
this.parent.remove(this);
|
||||
}
|
||||
|
||||
@@ -376,7 +376,7 @@ Phaser.Image.prototype.destroy = function(destroyChildren) {
|
||||
|
||||
if (this.parent)
|
||||
{
|
||||
if (this.parent.instanceof Phaser.Group)
|
||||
if (this.parent instanceof Phaser.Group)
|
||||
{
|
||||
this.parent.remove(this);
|
||||
}
|
||||
|
||||
@@ -499,7 +499,7 @@ Phaser.Sprite.prototype.destroy = function(destroyChildren) {
|
||||
|
||||
if (this.parent)
|
||||
{
|
||||
if (this.parent.instanceof Phaser.Group)
|
||||
if (this.parent instanceof Phaser.Group)
|
||||
{
|
||||
this.parent.remove(this);
|
||||
}
|
||||
|
||||
@@ -191,7 +191,7 @@ Phaser.Text.prototype.destroy = function (destroyChildren) {
|
||||
|
||||
if (this.parent)
|
||||
{
|
||||
if (this.parent.instanceof Phaser.Group)
|
||||
if (this.parent instanceof Phaser.Group)
|
||||
{
|
||||
this.parent.remove(this);
|
||||
}
|
||||
|
||||
@@ -291,7 +291,7 @@ Phaser.TileSprite.prototype.destroy = function(destroyChildren) {
|
||||
|
||||
if (this.parent)
|
||||
{
|
||||
if (this.parent.instanceof Phaser.Group)
|
||||
if (this.parent instanceof Phaser.Group)
|
||||
{
|
||||
this.parent.remove(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user