var Video = require('./Video'); var GameObjectFactory = require('../GameObjectFactory'); GameObjectFactory.register('video', function (x, y, key){ var video = new Video(this.scene, x, y, key); this.displayList.add(video); this.updateList.add(video); return video; } );