From 8026645ca6afcc08e2366523889cf55c34b80b0c Mon Sep 17 00:00:00 2001 From: adrien Date: Wed, 28 Jan 2026 22:01:24 +0100 Subject: [PATCH] speak when nbClearedLines > 1 --- jsm/Stats.js | 2 +- jsm/Tetrominoes.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jsm/Stats.js b/jsm/Stats.js index f43b91c..efdbf0a 100644 --- a/jsm/Stats.js +++ b/jsm/Stats.js @@ -183,7 +183,7 @@ class Stats { if (this.speechSynthesisAvailable && this.settings.sfxVolume) { if (tSpin) this.speak(tSpin, this.settings.sfxVolume); - if (nbClearedLines) this.speak(CLEARED_LINES_NAMES[nbClearedLines], this.settings.sfxVolume); + if (nbClearedLines > 1) this.speak(CLEARED_LINES_NAMES[nbClearedLines], this.settings.sfxVolume); } this.goal -= awardedLineClears diff --git a/jsm/Tetrominoes.js b/jsm/Tetrominoes.js index d79bf39..551b4a4 100644 --- a/jsm/Tetrominoes.js +++ b/jsm/Tetrominoes.js @@ -172,7 +172,7 @@ InstancedMino.prototype.materials = { envMap: environment, side: THREE.DoubleSide, transparent: true, - opacity: 0.85, + opacity: 0.66, roughness: 0.01, metalness: 0.99, }) @@ -509,7 +509,7 @@ class Playfield extends THREE.Group { new THREE.PlaneGeometry(COLUMNS, SKYLINE), new THREE.MeshStandardMaterial({ color: 0xc5d0a1, - roughness: 0.9, + roughness: 0.1, metalness: 0.9, }) )