From 21585bad7a60abe7d44777dec6791384e633de20 Mon Sep 17 00:00:00 2001 From: adrien Date: Tue, 24 Mar 2026 01:50:44 +0100 Subject: [PATCH] tweaks & dont speak clear lines --- jsm/Stats.js | 4 ++-- jsm/TetraScene.js | 6 +++--- jsm/Tetrominoes.js | 2 +- jsm/Vortex.js | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/jsm/Stats.js b/jsm/Stats.js index efdbf0a..00734fb 100644 --- a/jsm/Stats.js +++ b/jsm/Stats.js @@ -181,10 +181,10 @@ class Stats { this.b2b = -1 } - if (this.speechSynthesisAvailable && this.settings.sfxVolume) { + /*if (this.speechSynthesisAvailable && this.settings.sfxVolume) { if (tSpin) this.speak(tSpin, this.settings.sfxVolume); if (nbClearedLines > 1) this.speak(CLEARED_LINES_NAMES[nbClearedLines], this.settings.sfxVolume); - } + }*/ this.goal -= awardedLineClears if (this.goal <= 0) return this.level++ diff --git a/jsm/TetraScene.js b/jsm/TetraScene.js index 2a01556..f55f0af 100644 --- a/jsm/TetraScene.js +++ b/jsm/TetraScene.js @@ -71,8 +71,8 @@ export class TetraScene extends THREE.Scene { set theme(theme) { switch (theme) { case "Plasma": - this.ambientLight.intensity = 0 - this.directionalLight.intensity = 3 + this.ambientLight.intensity = 1 + this.directionalLight.intensity = 1 this.directionalLight.position.set(5, -20, 20) this.music.src = "audio/Moon-Over-Moscow-DJ-ResiDance-Mix-2022.mp3" this.background = new THREE.Color(0xffffff) @@ -81,7 +81,7 @@ export class TetraScene extends THREE.Scene { this.playfield.retroEdge.visible = false break case "Space": - this.ambientLight.intensity = 2 + this.ambientLight.intensity = 3 this.directionalLight.intensity = 1 this.directionalLight.position.set(2, 15, 20) this.music.src = "audio/benevolence.m4a" diff --git a/jsm/Tetrominoes.js b/jsm/Tetrominoes.js index 8f1a62f..48982fe 100644 --- a/jsm/Tetrominoes.js +++ b/jsm/Tetrominoes.js @@ -168,7 +168,7 @@ InstancedMino.prototype.materials = { envMap: environment, side: THREE.DoubleSide, transparent: true, - opacity: 0.6, + opacity: 0.55, roughness: 0.1, metalness: 0.95, }), diff --git a/jsm/Vortex.js b/jsm/Vortex.js index 805caab..aff1e73 100644 --- a/jsm/Vortex.js +++ b/jsm/Vortex.js @@ -17,7 +17,7 @@ export class Vortex extends THREE.Group { this.opaqueCylinder = new THREE.Mesh( new THREE.CylinderGeometry(40, 40, 1000, 12, 1, true), - new THREE.MeshBasicMaterial({ + new THREE.MeshLambertMaterial({ side: THREE.BackSide, blending: THREE.MultiplyBlending }) @@ -44,7 +44,7 @@ export class Vortex extends THREE.Group { texture.wrapT = THREE.MirroredRepeatWrapping texture.repeat.set(1, 2) this.transparentCylinder.material.map = texture - this.transparentCylinder.material.opacity = 0.15 + this.transparentCylinder.material.opacity = 0.3 this.add(this.transparentCylinder) }) @@ -78,7 +78,7 @@ export class Vortex extends THREE.Group { loader.load("./images/stars_space.jpg", texture => { texture.wrapS = THREE.RepeatWrapping - texture.wrapT = THREE.RepeatWrapping + texture.wrapT = THREE.MirroredRepeatWrapping texture.repeat.set(3, 6) this.opaqueCylinder.material.map = texture this.opaqueCylinder.material.blending = THREE.AdditiveBlending