var Container = require('./Container'); var GameObjectFactory = require('../GameObjectFactory'); var hasWarned = false ; GameObjectFactory.register('container', function (x, y, children){ if (!hasWarned) { console.warn('Use of a beta feature: Containers'); hasWarned = true ; } return this.displayList.add(new Container(this.scene, x, y, children)); } );