diff --git a/public/client.js b/public/client.js index f7fccc5..63c742d 100644 --- a/public/client.js +++ b/public/client.js @@ -36,8 +36,7 @@ const teamMaterials = { redTransparent: new THREE.MeshToonMaterial({ color: 0xff4444, transparent: true, opacity }), projectile: new THREE.MeshToonMaterial({ color: 0xff00ff, transparent: true, opacity }), range: new THREE.MeshToonMaterial({ color: 0x00ffff, transparent: true, opacity: opacity / 2 }), - visionRange: new THREE.MeshToonMaterial({ color: 0x226022 }), - // visionRange: new THREE.MeshToonMaterial({ color: 0x00ffff, transparent: true, opacity: opacity / 6 }), + visionRange: new THREE.MeshToonMaterial({ color: 0x00ffff, transparent: true, opacity: opacity / 6 }), } // TODO: draw lines of path for minimap camera @@ -342,9 +341,6 @@ function connectWebSocket() { entity = entities[e.id] } else { - // const entityMaterial = teamMaterials[e.team] - // entity = new THREE.Mesh(new THREE.CylinderGeometry(e.visualRadius / 100, e.visualRadius / 100, e.height / 50), entityMaterial) - // TODO: change entity material created = true entity = new THREE.Group() @@ -416,7 +412,7 @@ function connectWebSocket() { entity.children.at(0).visible = !e.dead entity.children.at(1).visible = !e.dead - entity.children.at(2).visible = !e.dead && e.buffs.some((it) => it.id == 'exposed') // TODO: only works for Exposed now + entity.children.at(2).visible = !e.dead && e.buffs.some((it) => it.id == 'exposed') const animations = animationActions[e.id] ?? {} const fadeIn = created ? 0 : 0.15 @@ -459,7 +455,7 @@ function connectWebSocket() { hp.position.x = -(1 - percentageHp) / 2 entity.children.at(3).visible = !e.dead && e.id == playerId - // entity.children.at(5).visible = !e.dead && e.team == playerTeam + // entity.children.at(5).visible = !e.dead && e.team == playerTeam // TODO: clipping makes the screen unviewable } for (const e of Object.values(entities)) {