hooking up loading, flow, audio

This commit is contained in:
Kevin Ngo
2018-07-21 10:21:30 +02:00
parent 2c19dfe50a
commit 3abd6ba9cf
17 changed files with 221 additions and 170 deletions

View File

@@ -1,6 +1,10 @@
AFRAME.registerComponent('console-shortcuts', {
play: function() {
play: function () {
window.$ = val => document.querySelector(val);
window.$$ = val => document.querySelectorAll(val);
window.$$$ = val => document.querySelector(`[${val}]`).getAttribute(val);
window.$$$$ = val => document.querySelector(`[${val}]`).components[val];
window.scene = this.el;
window.state = this.el.systems.state.state;
},
}
});