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:
photonstorm
2014-02-28 09:30:53 +00:00
parent 4562939e4e
commit 8662cd2fd4
34 changed files with 28254 additions and 12603 deletions
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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);
}