Building

Contagion Front

Fights a war on a real map while a pathogen ignores every border you drew.

Contagion Front case study cover
What it is
Browser game · Our own
Year
2026
What we ran
Building · Drawing
Built with
TypeScript · Vite · PixiJS · Three.js · Tone.js · Supabase

A personal project

Not client work. A browser strategy game we make for ourselves, in TypeScript, with no game engine.

War and disease, on one lever

You run a nation on a real map, research technology and fight for the world. Pathogens break out on their own and spread through everyone. Clinics, labs and medicine research beat them back. Infected land is weaker and cheaper for anyone to take, so a neighbour's epidemic is an opportunity, and yours is someone else's.

Online with no game server

Online play is deterministic lockstep. Every player's browser runs the same simulation from the same seed, and only intents cross the wire. So the simulation has to match bit for bit on every machine, and a guard fails the pre-commit check if Math.random or an approximated math function shows up in the simulation code.

A lot to play

  • A technology tree: 40 nodes in four branches, gated by era
  • Ages: 72 sillier breakthroughs, from the Dinosaur Age to the Year 9000
  • Solo modes: a campaign, a daily challenge and a ten-stage ladder with stars
  • A spy mission: a first-person minigame whose result reaches the war as one intent

A balance lab plays 48 games against 20 targets, because a rule that sounds fair often is not.