chore: add eslint, remove dead variables, pin line endings (P0-4)

This commit is contained in:
Benjamin Oezcan
2026-11-19 01:41:27 +01:00
parent fa68ef620d
commit 1156bc68eb
8 changed files with 1134 additions and 6 deletions

View File

@@ -661,7 +661,6 @@
// per-frame robot animation from the combat state
function poseRobot(R, r, dt) {
const w = R.st.weapon;
R.root.position.set(r.x, r.y, r.z);
R.root.rotation.y = -r.a;
// upside down when flipped
@@ -759,7 +758,7 @@
const scene_add = o => group.add(o);
scene.background = new T.Color(th.bg);
scene.fog = new T.Fog(th.fog, half * 3, half * 5.5);
const { key, rimA, rimB, flashLight } = out.lights;
const { key, rimA, rimB } = out.lights;
const sc = Math.max(11, half + 3);
Object.assign(key.shadow.camera, { left: -sc, right: sc, top: sc, bottom: -sc }); key.shadow.camera.updateProjectionMatrix();
rimA.color.setHex(th.rimA); rimA.position.set(-half - 1, 5, half + 1); rimA.distance = half * 2.6;
@@ -1343,7 +1342,6 @@
// ---- intro: dark arena -> floodlights flicker on -> camera sweeps up -> two robots are lowered in
const INTRO_END = RC.INTRO_END = 5.2;
const ease = u => (u < 0.5 ? 2 * u * u : 1 - Math.pow(-2 * u + 2, 2) / 2);
function lightsOn(k) {
const L = arena.lights;
L.key.intensity = 1.25 * k; L.rimA.intensity = 1.1 * k; L.rimB.intensity = 0.9 * k;