@@ -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,
|
||||
|
||||
@@ -4,9 +4,7 @@
|
||||
<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 DEBUG_AFRAME %}
|
||||
<script src="http://localhost:9000/dist/aframe-master.js"></script>
|
||||
{% elif IS_PRODUCTION %}
|
||||
{% if IS_PRODUCTION %}
|
||||
<script src="vendor/aframe-master.min.js"></script>
|
||||
{% else %}
|
||||
<script src="vendor/aframe-master.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user