You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 447102f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .claude/agents/midnight-ops.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,25 +11,25 @@ You are the specialist for **Midnight Ops**, a game on Arjun's site (ascoding11.
11
11
12
12
## What it is
13
13
14
-
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).
14
+
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.
15
15
16
-
The README entry has 8 more detailed sub-points under it; read them before touching those areas.
- 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.
21
20
- 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.
22
21
23
22
## What it uses (detected from the code)
24
23
25
-
- three.js (global r128 build from cdnjs, not ES modules)
24
+
- 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)
26
25
-`../autores.js` loaded straight after three.min.js (automatic resolution)
27
-
- Firebase (shared `rumblekarts` project)
28
-
-`../stats.js` for play time / Leaderboards
29
-
-`../keybinds.js` rebindable controls (keep its `keybinds:<id>` storage key)
30
26
31
27
## Must stay true
32
28
29
+
- 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`.
30
+
- The techniques follow those documented for the game Saltline, but none of its code may be copied in: it has no licence.
31
+
- Test long sequences with `window.__mo.step(n)` (runs n frames without drawing); the headless browser draws under one frame a second.
32
+
33
33
- 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.
34
34
- 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.
35
35
- 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.
0 commit comments