Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .claude/agents/midnight-ops.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ You are the specialist for **Midnight Ops**, a game on Arjun's site (ascoding11.

## What it is

Midnight Ops (**preview, admin page only**; Back Room folder; the folder keeps the working title `ironveil`, and the display name lives in ONE constant, `IV.GAME_NAME` in `js/core.js`, which fills the page title, the logo, the content note and the "turn your phone" card, so the name can change without touching anything else), a single-player first-person Second World War campaign (an over-the-shoulder view stays in Settings as "View") (three.js r187 from the site's own build, `/lib/three/r187/three.min.js` plus `three-addons.min.js` for GLTFLoader and SkeletonUtils, see `lib/three/README.md`; plus `../autores.js`, `../keybinds.js`, `/e63334287a3deaa3/lang.js` with its own `es.js`, `stats.js`; Web Audio; no Firebase, nothing online).
Midnight Ops (**preview, admin page only**; folder `ironveil`, display name `MO.GAME_NAME` in `js/core.js`) is a single-player first-person Second World War shooter, rebuilt from scratch so that every model, texture and sound is made in code when the page opens (no asset files). A campaign of missions, one file each in `js/maps/` (Night Drop: spike three flak guns in a Norman hamlet; The Radio Mast: silence a transmitter and topple a mast in a fenced compound before the artillery clock runs out). The README entry lists every file and what it does.

The README entry has 8 more detailed sub-points under it; read them before touching those areas.

## Where it lives

- Folder: `e63334287a3deaa3/ironveil/`: `CREDITS-env.md`, `CREDITS-weapons.md`, `CREDITS.md`, `assets/`, `chars-test.html`, `chars.js`, `env/`, `env-test.html`, `es.js`, `index.html`, `js/`, `preview.jpg`, `tools/`
- Folder: `e63334287a3deaa3/ironveil/`: `index.html`, `es.js`, `js/` (the whole game: `core`, `geo`, `tex`, `render`, `sky`, `ground`, `phys`, `props`, `level`, `fx`, `audio`, `input`, `player`, `gunmodel`, `weapon`, `enemy`, `hud`, `missions`, `mission`, `main`, and `maps/` with one file per mission), `preview.jpg`. `env/core.js`, `env/post.js`, `env/texgen.js`, `env/scans/`, `CREDITS-env.md` and `assets/lib/meshopt_decoder.js` are kept only because Ironwing loads them: don't delete or change them for this game.
- Docs: the bullet for `e63334287a3deaa3/ironveil/` in `README.md` (and the indented points under it). This is the source of truth for how the game works and stores data; read it in full before changing anything, and update it when you change behaviour, storage or file layout.

## What it uses (detected from the code)

- three.js (global r128 build from cdnjs, not ES modules)
- three.js r187 as a plain global (`/lib/three/r187/three.min.js`, with the r128 compatibility layer: colour management off, lights times pi; the game does its own HDR tone mapping and writes sRGB itself)
- `../autores.js` loaded straight after three.min.js (automatic resolution)
- Firebase (shared `rumblekarts` project)
- `../stats.js` for play time / Leaderboards
- `../keybinds.js` rebindable controls (keep its `keybinds:<id>` storage key)

## Must stay true

- Everything stays generated in code: no model, image or sound files. New art goes through `MO.Builder` (`js/geo.js`) and a material preset or texture family in `js/tex.js`; new sounds are recipes in `js/audio.js`.
- The techniques follow those documented for the game Saltline, but none of its code may be copied in: it has no licence.
- Test long sequences with `window.__mo.step(n)` (runs n frames without drawing); the headless browser draws under one frame a second.

- Keep every storage path, room prefix, localStorage key, stats/leaderboard id and saved-data format working exactly as it is, so players' saved progress, settings, ratings and invite links carry over. Old names mentioned above (folder, keys, ids) are kept on purpose: never "tidy" them.
- Don't change Firebase security rules or the Firebase config, and don't create a new Firebase project. If a change needs storage the rules don't allow, stop and say so instead.
- Keep the keyboard-and-mouse version unchanged on computers, and keep the touch controls working: shown only on touch screens, nothing overlapping in portrait or with the phone sideways.
Expand Down
5 changes: 5 additions & 0 deletions .claude/skills/war-game-series/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ description: Build or extend a game in Arjun's realistic war-game series (Midnig

# War-game series

> **Midnight Ops was rebuilt from scratch.** It no longer uses model files, the `IVEnv` environment kit, the Blender
> tools in `ironveil/tools/` or the old `IV.*` modules described below: everything is generated in code on a
> `window.MO` namespace (see its README entry for the files). Where this skill names an old Midnight Ops file or
> pipeline, treat it as history; Ironwing still uses `ironveil/env/core.js`, `post.js` and `texgen.js`.

Midnight Ops (`e63334287a3deaa3/ironveil/`) is the reference game for the series. Every new entry (a tank
game, a dogfight game, a naval game, more Midnight Ops missions) should feel like part of the same family: the same
render stack and look, the same quality tiers, the same way of separating gameplay from art, and the same rules on
Expand Down
2 changes: 1 addition & 1 deletion README.md

Large diffs are not rendered by default.

51 changes: 0 additions & 51 deletions e63334287a3deaa3/ironveil/CREDITS-weapons.md

This file was deleted.

24 changes: 0 additions & 24 deletions e63334287a3deaa3/ironveil/CREDITS.md

This file was deleted.

Binary file removed e63334287a3deaa3/ironveil/assets/ally.glb
Binary file not shown.
Binary file removed e63334287a3deaa3/ironveil/assets/anims.glb
Binary file not shown.
191 changes: 0 additions & 191 deletions e63334287a3deaa3/ironveil/assets/anims.json

This file was deleted.

Binary file removed e63334287a3deaa3/ironveil/assets/enemy.glb
Binary file not shown.
Binary file removed e63334287a3deaa3/ironveil/assets/hero.glb
Binary file not shown.
Binary file removed e63334287a3deaa3/ironveil/assets/weapons.glb
Binary file not shown.
Loading
Loading