Skip to content

Commit 447102f

Browse files
authored
Merge pull request #339: Midnight Ops rebuilt, now a campaign with two missions
Midnight Ops: rebuilt from scratch, now a campaign with two missions
2 parents 3b88e64 + 2904bfb commit 447102f

135 files changed

Lines changed: 4535 additions & 28150 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.claude/agents/midnight-ops.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ You are the specialist for **Midnight Ops**, a game on Arjun's site (ascoding11.
1111

1212
## What it is
1313

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.
1515

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

1817
## Where it lives
1918

20-
- 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/`
19+
- 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.
2120
- 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.
2221

2322
## What it uses (detected from the code)
2423

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)
2625
- `../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)
3026

3127
## Must stay true
3228

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+
3333
- 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.
3434
- 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.
3535
- 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.

‎.claude/skills/war-game-series/SKILL.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ description: Build or extend a game in Arjun's realistic war-game series (Midnig
55

66
# War-game series
77

8+
> **Midnight Ops was rebuilt from scratch.** It no longer uses model files, the `IVEnv` environment kit, the Blender
9+
> tools in `ironveil/tools/` or the old `IV.*` modules described below: everything is generated in code on a
10+
> `window.MO` namespace (see its README entry for the files). Where this skill names an old Midnight Ops file or
11+
> pipeline, treat it as history; Ironwing still uses `ironveil/env/core.js`, `post.js` and `texgen.js`.
12+
813
Midnight Ops (`e63334287a3deaa3/ironveil/`) is the reference game for the series. Every new entry (a tank
914
game, a dogfight game, a naval game, more Midnight Ops missions) should feel like part of the same family: the same
1015
render stack and look, the same quality tiers, the same way of separating gameplay from art, and the same rules on

‎README.md‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎e63334287a3deaa3/ironveil/CREDITS-weapons.md‎

Lines changed: 0 additions & 51 deletions
This file was deleted.

‎e63334287a3deaa3/ironveil/CREDITS.md‎

Lines changed: 0 additions & 24 deletions
This file was deleted.
-1.62 MB
Binary file not shown.
-2.75 MB
Binary file not shown.

‎e63334287a3deaa3/ironveil/assets/anims.json‎

Lines changed: 0 additions & 191 deletions
This file was deleted.
-4.04 MB
Binary file not shown.
-2.92 MB
Binary file not shown.

0 commit comments

Comments
 (0)