var Graphics = require('./Graphics'); var GameObjectFactory = require('../../scene/plugins/GameObjectFactory'); GameObjectFactory.register('graphics', function (config){ return this.displayList.add(new Graphics(this.scene, config)); } );