tweaks & dont speak clear lines

This commit is contained in:
2026-03-24 01:50:44 +01:00
parent 53b2361e2b
commit 21585bad7a
4 changed files with 9 additions and 9 deletions

View File

@@ -181,10 +181,10 @@ class Stats {
this.b2b = -1 this.b2b = -1
} }
if (this.speechSynthesisAvailable && this.settings.sfxVolume) { /*if (this.speechSynthesisAvailable && this.settings.sfxVolume) {
if (tSpin) this.speak(tSpin, this.settings.sfxVolume); if (tSpin) this.speak(tSpin, this.settings.sfxVolume);
if (nbClearedLines > 1) this.speak(CLEARED_LINES_NAMES[nbClearedLines], this.settings.sfxVolume); if (nbClearedLines > 1) this.speak(CLEARED_LINES_NAMES[nbClearedLines], this.settings.sfxVolume);
} }*/
this.goal -= awardedLineClears this.goal -= awardedLineClears
if (this.goal <= 0) return this.level++ if (this.goal <= 0) return this.level++

View File

@@ -71,8 +71,8 @@ export class TetraScene extends THREE.Scene {
set theme(theme) { set theme(theme) {
switch (theme) { switch (theme) {
case "Plasma": case "Plasma":
this.ambientLight.intensity = 0 this.ambientLight.intensity = 1
this.directionalLight.intensity = 3 this.directionalLight.intensity = 1
this.directionalLight.position.set(5, -20, 20) this.directionalLight.position.set(5, -20, 20)
this.music.src = "audio/Moon-Over-Moscow-DJ-ResiDance-Mix-2022.mp3" this.music.src = "audio/Moon-Over-Moscow-DJ-ResiDance-Mix-2022.mp3"
this.background = new THREE.Color(0xffffff) this.background = new THREE.Color(0xffffff)
@@ -81,7 +81,7 @@ export class TetraScene extends THREE.Scene {
this.playfield.retroEdge.visible = false this.playfield.retroEdge.visible = false
break break
case "Space": case "Space":
this.ambientLight.intensity = 2 this.ambientLight.intensity = 3
this.directionalLight.intensity = 1 this.directionalLight.intensity = 1
this.directionalLight.position.set(2, 15, 20) this.directionalLight.position.set(2, 15, 20)
this.music.src = "audio/benevolence.m4a" this.music.src = "audio/benevolence.m4a"

View File

@@ -168,7 +168,7 @@ InstancedMino.prototype.materials = {
envMap: environment, envMap: environment,
side: THREE.DoubleSide, side: THREE.DoubleSide,
transparent: true, transparent: true,
opacity: 0.6, opacity: 0.55,
roughness: 0.1, roughness: 0.1,
metalness: 0.95, metalness: 0.95,
}), }),

View File

@@ -17,7 +17,7 @@ export class Vortex extends THREE.Group {
this.opaqueCylinder = new THREE.Mesh( this.opaqueCylinder = new THREE.Mesh(
new THREE.CylinderGeometry(40, 40, 1000, 12, 1, true), new THREE.CylinderGeometry(40, 40, 1000, 12, 1, true),
new THREE.MeshBasicMaterial({ new THREE.MeshLambertMaterial({
side: THREE.BackSide, side: THREE.BackSide,
blending: THREE.MultiplyBlending blending: THREE.MultiplyBlending
}) })
@@ -44,7 +44,7 @@ export class Vortex extends THREE.Group {
texture.wrapT = THREE.MirroredRepeatWrapping texture.wrapT = THREE.MirroredRepeatWrapping
texture.repeat.set(1, 2) texture.repeat.set(1, 2)
this.transparentCylinder.material.map = texture this.transparentCylinder.material.map = texture
this.transparentCylinder.material.opacity = 0.15 this.transparentCylinder.material.opacity = 0.3
this.add(this.transparentCylinder) this.add(this.transparentCylinder)
}) })
@@ -78,7 +78,7 @@ export class Vortex extends THREE.Group {
loader.load("./images/stars_space.jpg", texture => { loader.load("./images/stars_space.jpg", texture => {
texture.wrapS = THREE.RepeatWrapping texture.wrapS = THREE.RepeatWrapping
texture.wrapT = THREE.RepeatWrapping texture.wrapT = THREE.MirroredRepeatWrapping
texture.repeat.set(3, 6) texture.repeat.set(3, 6)
this.opaqueCylinder.material.map = texture this.opaqueCylinder.material.map = texture
this.opaqueCylinder.material.blending = THREE.AdditiveBlending this.opaqueCylinder.material.blending = THREE.AdditiveBlending