diff --git a/jsm/TetraControls.js b/jsm/TetraControls.js index 620043b..3c81523 100644 --- a/jsm/TetraControls.js +++ b/jsm/TetraControls.js @@ -14,7 +14,7 @@ class TetraControls extends OrbitControls { this.maxPolarAngle = 2.1 this.minAzimuthAngle = 0.9 - Math.PI / 2 this.maxAzimuthAngle = 2.14 - Math.PI / 2 - this.target.set(5, 7, 0) + this.target.set(5, 7.5, 0) this.addEventListener("start", () => domElement.style.cursor = "grabbing") this.addEventListener("end", () => domElement.style.cursor = "grab") diff --git a/jsm/TetraScene.js b/jsm/TetraScene.js index 0e0b426..d65c014 100644 --- a/jsm/TetraScene.js +++ b/jsm/TetraScene.js @@ -7,7 +7,7 @@ export class TetraScene extends THREE.Scene { super() this.camera = new THREE.PerspectiveCamera(100, window.innerWidth / window.innerHeight, 0.1, 1000) - this.camera.position.set(5, 3, 12) + this.camera.position.set(5, 4, 12) this.vortex = new Vortex(loadingManager) this.add(this.vortex) diff --git a/jsm/Tetrominoes.js b/jsm/Tetrominoes.js index ae3a114..067e976 100644 --- a/jsm/Tetrominoes.js +++ b/jsm/Tetrominoes.js @@ -271,7 +271,7 @@ class Tetromino extends THREE.Group { } else { scheduler.resetTimeout(this.onLockDown, this.lockDelay) this.locking = true - this.parent?.ghost.visible = false + this.parent.ghost.visible = false } return true } else if (translation == TRANSLATION.DOWN) {