repo: janusweb action: commit revision: path_from: revision_from: cdf5fb37cd8d59802716ebe1bccb614224c63f0c: path_to: revision_to:
commit cdf5fb37cd8d59802716ebe1bccb614224c63f0c Author: James BaicoianuDate: Thu Oct 26 13:37:46 2017 -0700 Include teleporter element by default diff --git a/scripts/janusweb.js b/scripts/janusweb.js
--- a/scripts/janusweb.js
+++ b/scripts/janusweb.js
@@ -1,4 +1,7 @@
-elation.require(['janusweb.config', 'engine.things.generic','janusweb.remoteplayer', 'janusweb.room', 'janusweb.tracking', 'janusweb.multiplayermanager', 'janusweb.external.JanusFireboxParser', 'utils.proxy', 'janusweb.elements.raycaster'], function() {
+elation.require([
+ 'janusweb.config', 'engine.things.generic','janusweb.remoteplayer', 'janusweb.room', 'janusweb.tracking', 'janusweb.multiplayermanager', 'janusweb.external.JanusFireboxParser', 'utils.proxy',
+ 'janusweb.elements.raycaster', 'janusweb.elements.teleporter'], function() {
+
elation.requireCSS('janusweb.janusweb');
elation.component.add('engine.things.janusweb', function() {
this.rooms = {};
@@ -107,7 +110,7 @@ elation.require(['janusweb.config', 'engine.things.generic','janusweb.remoteplay
}
this.initScripting();
// TODO - this should be config-driven
- this.registerAdditionalElements(['raycaster']);
+ this.registerAdditionalElements(['raycaster', 'teleporter']);
}
this.initScripting = function() {
if (this.scriptingInitialized) return;
-----END OF PAGE-----