clean up TODO notes
This commit is contained in:
+3
-7
@@ -36,8 +36,7 @@ const teamMaterials = {
|
|||||||
redTransparent: new THREE.MeshToonMaterial({ color: 0xff4444, transparent: true, opacity }),
|
redTransparent: new THREE.MeshToonMaterial({ color: 0xff4444, transparent: true, opacity }),
|
||||||
projectile: new THREE.MeshToonMaterial({ color: 0xff00ff, transparent: true, opacity }),
|
projectile: new THREE.MeshToonMaterial({ color: 0xff00ff, transparent: true, opacity }),
|
||||||
range: new THREE.MeshToonMaterial({ color: 0x00ffff, transparent: true, opacity: opacity / 2 }),
|
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
|
// TODO: draw lines of path for minimap camera
|
||||||
@@ -342,9 +341,6 @@ function connectWebSocket() {
|
|||||||
entity = entities[e.id]
|
entity = entities[e.id]
|
||||||
}
|
}
|
||||||
else {
|
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
|
created = true
|
||||||
|
|
||||||
entity = new THREE.Group()
|
entity = new THREE.Group()
|
||||||
@@ -416,7 +412,7 @@ function connectWebSocket() {
|
|||||||
|
|
||||||
entity.children.at(0).visible = !e.dead
|
entity.children.at(0).visible = !e.dead
|
||||||
entity.children.at(1).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 animations = animationActions[e.id] ?? {}
|
||||||
const fadeIn = created ? 0 : 0.15
|
const fadeIn = created ? 0 : 0.15
|
||||||
@@ -459,7 +455,7 @@ function connectWebSocket() {
|
|||||||
hp.position.x = -(1 - percentageHp) / 2
|
hp.position.x = -(1 - percentageHp) / 2
|
||||||
|
|
||||||
entity.children.at(3).visible = !e.dead && e.id == playerId
|
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)) {
|
for (const e of Object.values(entities)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user