tweaks & dont speak clear lines
This commit is contained in:
@@ -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++
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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,
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user