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