speak when nbClearedLines > 1

This commit is contained in:
2026-01-28 22:01:24 +01:00
parent 6d19817f77
commit 8026645ca6
2 changed files with 3 additions and 3 deletions

View File

@@ -183,7 +183,7 @@ class Stats {
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) 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

View File

@@ -172,7 +172,7 @@ InstancedMino.prototype.materials = {
envMap: environment, envMap: environment,
side: THREE.DoubleSide, side: THREE.DoubleSide,
transparent: true, transparent: true,
opacity: 0.85, opacity: 0.66,
roughness: 0.01, roughness: 0.01,
metalness: 0.99, metalness: 0.99,
}) })
@@ -509,7 +509,7 @@ class Playfield extends THREE.Group {
new THREE.PlaneGeometry(COLUMNS, SKYLINE), new THREE.PlaneGeometry(COLUMNS, SKYLINE),
new THREE.MeshStandardMaterial({ new THREE.MeshStandardMaterial({
color: 0xc5d0a1, color: 0xc5d0a1,
roughness: 0.9, roughness: 0.1,
metalness: 0.9, metalness: 0.9,
}) })
) )