Phaser.GameObject.BitmapText.FACTORY_KEY = 'bitmapText'; Phaser.GameObject.BitmapText.FACTORY_ADD = function (x, y, font, text, size, group){ if (group === undefined) { group = this.world; } return group.add(new Phaser.GameObject.BitmapText(this.game, x, y, font, text, size)); } ; Phaser.GameObject.BitmapText.FACTORY_MAKE = function (x, y, font, text, size, align){ return new Phaser.GameObject.BitmapText(this.game, x, y, font, text, size, align); } ;