Phaser.GameObject.Text.FACTORY_KEY = 'text'; Phaser.GameObject.Text.FACTORY_ADD = function (x, y, text, style, group){ if (group === undefined) { group = this.world; } return group.add(new Phaser.GameObject.Text(this.game, x, y, text, style)); } ; Phaser.GameObject.Text.FACTORY_MAKE = function (x, y, text, style){ return new Phaser.GameObject.Text(this.game, x, y, text, style); } ;