larger vortex
This commit is contained in:
parent
c4979b5890
commit
bdf99b41b7
4
app.js
4
app.js
@ -53,11 +53,11 @@ document.body.appendChild(renderer.domElement)
|
|||||||
scene.camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000)
|
scene.camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000)
|
||||||
scene.camera.position.set(5, 0, 16)
|
scene.camera.position.set(5, 0, 16)
|
||||||
|
|
||||||
scene.ambientLight = new THREE.AmbientLight(0xffffff, 0.2)
|
scene.ambientLight = new THREE.AmbientLight(0xffffff, 0.1)
|
||||||
scene.add(scene.ambientLight)
|
scene.add(scene.ambientLight)
|
||||||
|
|
||||||
scene.directionalLight = new THREE.DirectionalLight(0xffffff, 15)
|
scene.directionalLight = new THREE.DirectionalLight(0xffffff, 15)
|
||||||
scene.directionalLight.position.set(5, 0, -10)
|
scene.directionalLight.position.set(5, 100, -10)
|
||||||
scene.add(scene.directionalLight)
|
scene.add(scene.directionalLight)
|
||||||
|
|
||||||
const holdQueue = new HoldQueue()
|
const holdQueue = new HoldQueue()
|
||||||
|
@ -14,7 +14,7 @@ class Vortex extends THREE.Group {
|
|||||||
constructor(loadingManager) {
|
constructor(loadingManager) {
|
||||||
super()
|
super()
|
||||||
|
|
||||||
const commonCylinderGeometry = new THREE.CylinderGeometry(25, 25, 500, 12, 1, true)
|
const commonCylinderGeometry = new THREE.CylinderGeometry(35, 35, 500, 12, 1, true)
|
||||||
|
|
||||||
this.darkCylinder = new THREE.Mesh(
|
this.darkCylinder = new THREE.Mesh(
|
||||||
commonCylinderGeometry,
|
commonCylinderGeometry,
|
||||||
|
@ -425,7 +425,7 @@ class Matrix extends THREE.Group {
|
|||||||
updateUnlockedMinoes(delta) {
|
updateUnlockedMinoes(delta) {
|
||||||
this.unlockedMinoes.forEach(mino => {
|
this.unlockedMinoes.forEach(mino => {
|
||||||
mino.update(delta)
|
mino.update(delta)
|
||||||
if (Math.sqrt(mino.position.x * mino.position.x + mino.position.z * mino.position.z) > 25) {
|
if (Math.sqrt(mino.position.x * mino.position.x + mino.position.z * mino.position.z) > 40) {
|
||||||
this.remove(mino)
|
this.remove(mino)
|
||||||
this.unlockedMinoes.delete(mino)
|
this.unlockedMinoes.delete(mino)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user