Back to the game

How it's built

A fighting game that runs in a browser tab: a deterministic simulation, a real-time renderer on WebGPU and an asset pipeline that turns museum scans into fighters. Every number on this page comes from the build — the tests, the benchmarks and the files that ship.

Numbers generated on 2026-12-05.

The architecture

Every frame

  1. Inputkeyboard · gamepad · touchthe AI (same input words)
  2. Simulationshared/ · fixed-point · 60 Hzframe data · collisions · finishers
  3. Snapshotread-only, every steppositions · clips · events
  4. View · Sound · HUDthree.js WebGPU + TSL postWeb Audio · React

Every asset

  1. ScansSketchfab · Poly Haven · Mixamolicences checked per file
  2. Blenderretopology · autorig · bakeslight maps in Cycles
  3. gltfpackmeshopt geometryKTX2 textures · Low + High
  4. CDNCloudflare R2budgets enforced in CI
The simulation never sees the screen: it takes two 16-bit input words a frame and returns a snapshot. Everything else only reads that snapshot.

Determinism

500 seeded fights, 750,000 frames: the state hash of every frame folded into one digest. The same digest everywhere means the same fight everywhere — the ground for replays and rollback.

WhereDigest
Node (run twice)4fd524fa
Chrome4fd524fa
Firefox4fd524fa
WebKit4fd524fa

Tests

Unit (simulation, data, server rules)

647

647 of 647 pass

API integration (Express + PostgreSQL)

60

60 of 60 pass

Browser (the real game in Chrome; OBJ-8 also in Firefox and WebKit)

40

40 of 40 pass

Speed

Simulation step

0.36 µs

average over 108 full matches, 1,269,711 frames (target ≤ 300 µs)

Desktop, High

60 fps

undercroft 60 · hintze-hall 60 · cloister 60

Phone layout, Low

59 fps

undercroft 59 · hintze-hall 60 · cloister 60

Input → first frame of the move

1 f

16.1 ms

Marrow Strike, worst frame

16.9 ms

Rites at every gore level, worst frame

16.9 ms

Landing → a fighter that moves (production build)

4.7 s

A phone on Fast 4G: landing → a fighter that moves

7.5 s

Lighthouse on a phone, lowest score

99

/, /about and /credits — performance, accessibility, best practices, SEO

The AI against itself

Every level plays every fighter on each of his Paths against every other: all matches end, nobody stands still for 5 s, and at the Fighter level every pairing of two fighters lands between 35 % and 65 %.

LevelMatchesLongest stand-stillPairings outside 35–65 %
novice9,9362.8 s1 / 28
fighter9,9361.8 s0 / 28
nightmare9,9361.8 s13 / 28

From scan to fighter

Downloaded scans are retopologised, rigged and relit in Blender, then packed with gltfpack (meshopt geometry, KTX2 textures). The first fight loads the Low files (5.5 MB of models, maps and props); the full ones stream in during the intro.

  • Thorne

    Downloaded
    88.4 MB · 223,711 tris · 22 × ≤ 2048x2048
    Shipped
    15.4 MB · 53,620 tris · 22 × ≤ 2048x2048
    Shipped Low
    5.2 MB · 53,620 tris · 22 × ≤ 1024x1024
  • Karnax

    Downloaded
    53.7 MB · 310,231 tris · 3 × ≤ 4096x4096
    Shipped
    3.1 MB · 49,985 tris · 3 × ≤ 2048x2048
    Shipped Low
    2.2 MB · 49,985 tris · 3 × ≤ 1024x1024
  • The Undercroft

    Downloaded
    125.2 MB · 1,904,889 tris · 2 × ≤ 8192x8192
    Shipped
    13.2 MB · 323,849 tris · 6 × ≤ 4096x4096
    Shipped Low
    2.1 MB · 161,918 tris · 6 × ≤ 1024x1024
  • Hintze Hall

    Downloaded
    156.3 MB · 1,982,017 tris · 2 × ≤ 8192x8192
    Shipped
    13.6 MB · 379,373 tris · 6 × ≤ 4096x4096
    Shipped Low
    2.4 MB · 189,681 tris · 6 × ≤ 1024x1024

46 built files, 125.7 MB of models and maps, 28 MB of sound.

Frame data, Thorne

Read from the same data files the simulation runs. Open Training to see the hitboxes live.

Frames at 60 per second; + means you act first.
MoveStartHitBlockDmg
Pommel JabLH · high8+603%
Crossguard CutHH · mid12+6-55%
Shin KickLL · low9+4-24%
Hilt KickHL · mid14+8-66%
Low Pommel↓ LH · mid7+603%
Rising Edge↓ HH · mid13Launch-85%
Ankle Cut↓ LL · low8+5-24%
Reaping Sweep↓ HL · low15KD-76%
Vaulting Hilt→ HL · overhead20KD-46%
Falling Pommelin the air LH · overhead7+7+13%
Plunging Cutin the air HH · overhead10+10+25%
Knee Dropin the air LL · overhead8KD+14%
Heel Dropin the air HL · overhead11KD+26%
Vigil IILH · mid9+5-13%
Vigil IIIHH · mid12KD-105%
Penance IIHH · mid11+4-65%
Penance IIIHL · overhead16KD-106%
Low Rite IILH · mid9+5-13%
Low Rite IIIHL · low15KD-66%
Marrow Strike: Oath of BoneBLOCK HH HL · mid12-20-3033%
Oath Opener→ LH · mid9+603%
Oath SecondHH · mid11+4-65%
Oath SealedHH · mid13+6-85%
Vigil Stance↓ ← HH · mid10-33-330%
Lunging Thrust← → HH · mid16+6-1010%
Thornwheel↓ → HL · mid18KD-1712%
Oath Cleave→ ↓ → HH · overhead22KD-411%
Open Training

Gore is never on the landing. A production build starts on Cinematic; Full asks for an 18+ confirmation first.