Phaser.SpriteBatch = function (game, parent, name, addToStage){ if (parent === undefined || parent === null ) { parent = game.world; } PIXI.SpriteBatch.call(this); Phaser.Group.call(this, game, parent, name, addToStage); this.type = Phaser.SPRITEBATCH; } ; Phaser.SpriteBatch.prototype = Phaser.Utils.extend(true , Phaser.SpriteBatch.prototype, PIXI.SpriteBatch.prototype, Phaser.Group.prototype); Phaser.SpriteBatch.prototype.constructor = Phaser.SpriteBatch;