bump aframe

This commit is contained in:
Kevin Ngo
2018-11-12 16:58:49 +08:00
parent cb56818ba1
commit f407db8457
8 changed files with 276 additions and 400 deletions

View File

@@ -97,12 +97,15 @@ AFRAME.registerComponent('beat', {
new THREE.Vector3()
];
this.wrongElLeft = document.getElementById('wrongLeft');
this.wrongElRight = document.getElementById('wrongRight');
this.blockEl = document.createElement('a-entity');
this.mineParticles = document.getElementById('mineParticles');
this.missElLeft = document.getElementById('missLeft');
this.missElRight = document.getElementById('missRight');
this.particles = document.getElementById('saberParticles');
this.mineParticles = document.getElementById('mineParticles');
this.signEl = document.createElement('a-entity');
this.wrongElLeft = document.getElementById('wrongLeft');
this.wrongElRight = document.getElementById('wrongRight');
this.saberColors = {right: 'blue', left: 'red'};
@@ -218,9 +221,9 @@ AFRAME.registerComponent('beat', {
},
initBlock: function () {
var el = this.el;
var blockEl = this.blockEl = document.createElement('a-entity');
var signEl = this.signEl = document.createElement('a-entity');
const blockEl = this.blockEl;
const el = this.el;
const signEl = this.signEl;
blockEl.setAttribute('mixin', 'beatBlock');
blockEl.setAttribute('mixin', 'beatSign');
@@ -232,8 +235,8 @@ AFRAME.registerComponent('beat', {
},
updateBlock: function () {
var blockEl = this.blockEl;
var signEl = this.signEl;
const blockEl = this.blockEl;
const signEl = this.signEl;
blockEl.setAttribute('material', {
metalness: 0.6,

View File

@@ -4,7 +4,9 @@
<title>Super Saber</title>
<meta name="description" content="Beat Saber on the VR Web with searchable and playable community songs from Beat Saver.">
<link rel="shortcut icon" href="assets/img/favicon.png" type="image/x-icon">
{% if IS_PRODUCTION %}
{% if DEBUG_AFRAME %}
<script src="http://localhost:9000/dist/aframe-master.js"></script>
{% elif IS_PRODUCTION %}
<script src="vendor/aframe-master.min.js"></script>
{% else %}
<script src="vendor/aframe-master.js"></script>