added new hit sounds (wip)

This commit is contained in:
Diego F. Goberna
2018-11-06 23:48:04 +01:00
parent 2131434ba0
commit 8b4d83dde4
22 changed files with 4 additions and 3 deletions

BIN
assets/sounds/LastHit1.ogg Normal file

Binary file not shown.

BIN
assets/sounds/LastHit10.ogg Normal file

Binary file not shown.

BIN
assets/sounds/LastHit2.ogg Normal file

Binary file not shown.

BIN
assets/sounds/LastHit3.ogg Normal file

Binary file not shown.

BIN
assets/sounds/LastHit4.ogg Normal file

Binary file not shown.

BIN
assets/sounds/LastHit5.ogg Normal file

Binary file not shown.

BIN
assets/sounds/LastHit6.ogg Normal file

Binary file not shown.

BIN
assets/sounds/LastHit7.ogg Normal file

Binary file not shown.

BIN
assets/sounds/LastHit8.ogg Normal file

Binary file not shown.

BIN
assets/sounds/LastHit9.ogg Normal file

Binary file not shown.

BIN
assets/sounds/hit1.ogg Normal file

Binary file not shown.

BIN
assets/sounds/hit10.ogg Normal file

Binary file not shown.

BIN
assets/sounds/hit2.ogg Normal file

Binary file not shown.

BIN
assets/sounds/hit3.ogg Normal file

Binary file not shown.

BIN
assets/sounds/hit4.ogg Normal file

Binary file not shown.

BIN
assets/sounds/hit5.ogg Normal file

Binary file not shown.

BIN
assets/sounds/hit6.ogg Normal file

Binary file not shown.

BIN
assets/sounds/hit7.ogg Normal file

Binary file not shown.

BIN
assets/sounds/hit8.ogg Normal file

Binary file not shown.

BIN
assets/sounds/hit9.ogg Normal file

Binary file not shown.

View File

@@ -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">

View File

@@ -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');
}
},