spinend sound

This commit is contained in:
2026-03-27 08:32:43 +01:00
parent 81c49ed4ae
commit a4f7ba0e08
3 changed files with 8 additions and 2 deletions

View File

@@ -79,6 +79,11 @@ export class TetraScene extends THREE.Scene {
this.rotateSound.setBuffer(buffer)
this.rotateSound.setVolume(settings.sfxVolume/100)
}.bind(this))
this.spinEndSound = new THREE.Audio(listener)
audioLoader.load('audio/spinend.mp3', function( buffer ) {
this.spinEndSound.setBuffer(buffer)
this.spinEndSound.setVolume(settings.sfxVolume/100)
}.bind(this))
this.playfield = new Playfield(loadingManager)
this.add(this.playfield)