speak when nbClearedLines > 1
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user