merge space and retro themes

This commit is contained in:
2026-03-24 01:29:44 +01:00
parent 8509608ba9
commit 53b2361e2b
4 changed files with 30 additions and 36 deletions

View File

@@ -81,22 +81,12 @@ export class TetraScene extends THREE.Scene {
this.playfield.retroEdge.visible = false
break
case "Space":
this.ambientLight.intensity = 5
this.directionalLight.intensity = 10
this.ambientLight.intensity = 2
this.directionalLight.intensity = 1
this.directionalLight.position.set(2, 15, 20)
this.music.src = "audio/benevolence.m4a"
this.background = new THREE.Color(0x000000)
this.fog.color.set(0x000000)
this.playfield.edge.visible = true
this.playfield.retroEdge.visible = false
break
case "Retro":
this.ambientLight.intensity = 1
this.directionalLight.intensity = 10
this.directionalLight.position.set(19, 120, 200)
this.music.src = "audio/Tetris_MkVaffQuasi_Ultimix_OC_ReMix.mp3"
this.background = new THREE.Color(0x000000)
this.fog.color.set(0x000000)
this.playfield.edge.visible = false
this.playfield.retroEdge.visible = true
break