added new hit sounds (wip)
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
<audio id="beatHitSound" src="assets/sounds/beatHit.ogg"></audio>
|
||||
<audio id="confirmSound" src="assets/sounds/beatHit.ogg"></audio>
|
||||
<audio id="hoverSound" src="assets/sounds/hover.ogg"></audio>
|
||||
<audio id="hitSound9" src="assets/sounds/LastHit9.ogg"></audio>
|
||||
|
||||
<img id="backglowTexture" src="assets/img/stage/backglow.png">
|
||||
<img id="cursorMeshImg" src="assets/models/laser/laser.png">
|
||||
|
||||
@@ -42,8 +42,8 @@ AFRAME.registerComponent('beat-hit-sound', {
|
||||
this.currentCutDirection = '';
|
||||
this.el.setAttribute('sound__beathit', {
|
||||
poolSize: 12,
|
||||
src: '#beatHitSound',
|
||||
volume: 0.5
|
||||
src: '#hitSound9',
|
||||
volume: 0.9
|
||||
});
|
||||
this.processSound = this.processSound.bind(this);
|
||||
|
||||
@@ -55,7 +55,7 @@ AFRAME.registerComponent('beat-hit-sound', {
|
||||
if (!this.el.components.sound__beathit.loaded) {
|
||||
console.log('[beat-hit-sound] Kicking three.js AudioLoader / sound component...');
|
||||
this.el.setAttribute('sound__beathit', 'src', '');
|
||||
this.el.setAttribute('sound__beathit', 'src', '#beatHitSound');
|
||||
this.el.setAttribute('sound__beathit', 'src', '#hitSound9');
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user