Revert "bump aframe"

This reverts commit f407db8457.
This commit is contained in:
Kevin Ngo
2018-11-14 15:00:14 +08:00
parent 1070f07fe3
commit 67a370d31f
8 changed files with 396 additions and 268 deletions

View File

@@ -108,12 +108,12 @@ AFRAME.registerComponent('beat', {
this.blockEl = document.createElement('a-entity');
this.mineParticles = document.getElementById('mineParticles');
this.wrongElLeft = document.getElementById('wrongLeft');
this.wrongElRight = document.getElementById('wrongRight');
this.missElLeft = document.getElementById('missLeft');
this.missElRight = document.getElementById('missRight');
this.particles = document.getElementById('saberParticles');
this.signEl = document.createElement('a-entity');
this.wrongElLeft = document.getElementById('wrongLeft');
this.wrongElRight = document.getElementById('wrongRight');
this.mineParticles = document.getElementById('mineParticles');
this.explodeEventDetail = {position: null, rotation: null};
this.saberColors = {right: 'blue', left: 'red'};
@@ -231,9 +231,9 @@ AFRAME.registerComponent('beat', {
},
initBlock: function () {
const blockEl = this.blockEl;
const el = this.el;
const signEl = this.signEl;
var el = this.el;
var blockEl = this.blockEl = document.createElement('a-entity');
var signEl = this.signEl = document.createElement('a-entity');
blockEl.setAttribute('mixin', 'beatBlock');
blockEl.setAttribute('mixin', 'beatSign');
@@ -248,6 +248,7 @@ AFRAME.registerComponent('beat', {
const blockEl = this.blockEl;
const signEl = this.signEl;
if (!blockEl) { return; }
blockEl.setAttribute('material', {
metalness: 0.6,
roughness: 0.12,