Implement Lantern Bearer logic, Phase buttons, and Monster spawning basics

This commit is contained in:
2026-01-04 23:48:53 +01:00
parent 4c8b58151b
commit 056217437c
9 changed files with 638 additions and 102 deletions

View File

@@ -185,6 +185,14 @@ export class GameRenderer {
mesh.position.set(entity.x, h / 2, -entity.y);
// Clear old children if re-adding (to prevent multiple rings)
for (let i = mesh.children.length - 1; i >= 0; i--) {
const child = mesh.children[i];
if (child.name === "SelectionRing") {
mesh.remove(child);
}
}
// Selection Circle
const ringGeom = new THREE.RingGeometry(0.3, 0.4, 32);
const ringMat = new THREE.MeshBasicMaterial({ color: 0xffff00, side: THREE.DoubleSide, transparent: true, opacity: 0.35 });
@@ -471,7 +479,7 @@ export class GameRenderer {
},
undefined,
(err) => {
console.error(`[TextureLoader] ✗ Failed to load: ${path}`, err);
console.error(`[TextureLoader] [Checked] ✗ Failed to load: ${path}`, err);
}
);
tex.magFilter = THREE.NearestFilter;