spinend sound

This commit is contained in:
adrien committed 2026-03-27 08:32:43 +01:00
1 parent 81c49ed4ae
commit a4f7ba0e08
3 files changed
+8 -2

No files matched your search

+5
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)