added ?synctest=true that logs when a beat hits the back wall for testing sync

This commit is contained in:
Kevin Ngo
2018-10-29 21:54:14 -07:00
parent 9088c3fda9
commit 0934de51a9

View File

@@ -368,6 +368,9 @@ AFRAME.registerComponent('beat', {
missEl.object3D.position.z -= 0.5;
missEl.object3D.visible = true;
missEl.emit('beatmiss', null, true);
if (AFRAME.utils.getUrlParameter('synctest')) {
console.log(this.el.sceneEl.components.song.getCurrentTime());
}
},
destroyBeat: (function () {