Work · 03 of 09 · TypeScript · React 19 · Vite

DOST 2.0 FK

The live strategy map of a 24-hour political education LARP: a browser game client in which 150 players build, finance, target, fight and legislate in a war simulation running underneath a peace conference.

Role
UX concept and sole frontend developer. The Rust simulation engine and the overall design of the LARP were made by others.
Tools
TypeScript, React 19, Vite, MapLibre GL JS, Pixi.js, TanStack React Query, Zustand, Tailwind CSS, Turf.js, Docker, nginx
Context
Edu-LARP by the Bund Deutscher PfadfinderInnen, Landesverband Berlin, funded by the Berliner Landeszentrale für politische Bildung, 2026
Players
150

Overview

DOST 2.0 FK is a 24-hour political education LARP. Players act out two blocs at war, meeting at a peace conference. While the talks take place in the room, a simulation runs underneath them: it is where the war is actually directed, and where the economy that pays for it is managed. I designed and built the players' window into that layer, a live world map on which they build, finance, target, fight and legislate.

  • 150players
  • 24 hLARP
  • 62zones
  • 11resources

How the game works

The simulation turns a war into a budget: every unit on the map is paid for by an economy that players also have to run, protect and shape politically.

  • Zones. The world is split into 62 zones, each belonging to a bloc. The two playable blocs are WEST and PARCA.
  • Trusts. A zone pays for a trust, optionally co-funded by private financiers. It produces money and one of 11 resources, such as water, steel or silicon. Its income falls as the world's supply of that resource grows, and further while enemy units sit inside its inhibition radius.
  • Bases. A bloc pays for a base, which converts a share of the bloc's income, the military expense the bloc sets itself, into units every hour.
  • Units. Every minute, units move toward the target their base chose. The server resolves fights with dice rolls, and loot goes to the base that wins.
  • Social laws. Each zone sets levels on laws such as Migration-Permeability-Level or Sin-Chip-Enforcement, which feed into its income.
  • Credit exchange. A separate service holds every account and recurring payment, so building, financing and loot are real bookings between players, blocs and zones.

The result is a closed loop: the economy pays for the army, the army threatens the other side's economy, and loot from winning fights feeds back to the winners.

What I built

A complete browser game client:

  • World map. A custom-illustrated map georeferenced in MapLibre GL. A Node and Turf.js build script turns a hand-written list of zones into simplified GeoJSON, producing 62 clickable polygons coloured by bloc. Navigation is fitted to a strategy game: no rotation, clamped latitude and endless horizontal scrolling.
  • Markers and live units. SVG icons generated on demand (hex and diamond shapes, bloc colours, sub-type icons, hover and combat states). Unit positions update by polling and appear as bright dots in bloc colours, with a red ring for units in combat.
  • Combat effects. A transparent Pixi.js WebGL layer, re-synchronised with every map render, move and zoom. Each fight shows a pulsing ring split into arcs in each bloc's colour, and short bursts mark kills, destroyed buildings and the end of a fight.
  • Building and financing. Menus that stay attached to the clicked map object as the map moves. Players see the full cost before confirming and can add co-financiers, who consent by scanning a QR credential.
  • Target selection. Choosing a base's target is its own mode: the camera flies out to frame the base and every valid enemy target, each target pulses, and players preview, stage, then save or cancel.
  • Governance and economy. Panels for a zone's social laws, a bloc's military spending with live hourly income, permissions, and credit accounts for the player and every bloc or zone they control.
  • Login and sessions. Password or QR login, with cached data cleared whenever the user changes so one player never sees another's data.

UX for players who aren't gamers

Role-players switch between a screen and a room full of people for 24 hours. They needed to act on the war without learning software first.

  • The map is the interface. Nearly every action starts by clicking something on the map, and its menu opens right there and follows it. There is no separate dashboard, so the war stays in view.
  • Permissions are explained, not hidden. Unavailable actions say why. Hidden information is labelled, for example "Target: hidden — you don't have read access to this bloc", so an empty field isn't mistaken for "nothing there". This also makes the information asymmetry between blocs part of the fiction.
  • Hidden rules made visible. The inhibition radius is an invisible rule on the server. Players can preview it, and any trust with an enemy inside its radius is outlined in red.
  • Colour with roles. Muted colours for buildings, bright neon for units so moving things stand out, red only for danger and combat, blue for military actions and green for economic ones.
  • Live updates never overwrite typing. Forms keep a local draft that background polling doesn't touch.
  • QR codes for a physical event. Login and financier consent both work by scanning, which suits an event where credentials can be physical objects and typing is slow.

Engineering

  • Live data over plain HTTP. The backend has no WebSockets, so each kind of data polls at its own interval, all set in one file. Expensive account balances only refresh quickly while a panel showing them is open.
  • Typed cache invalidation. At one point, scattered refresh code left every balance in the interface frozen at its login value. I replaced it with a single registry of cache keys: each write declares which data it changes, one central handler refreshes it, and the compiler checks the declarations.
  • Effects that stay honest about the data. The backend reports how many units are fighting and what happened, not hit points. Ring size, which grows with the square root of the unit count, bloc-coloured arcs and bursts come strictly from that data. Purely decorative flashes are kept separate and use seeded noise per fight, so concurrent battles never flicker in sync.
  • Types mirror the backend. TypeScript types copy the Rust API responses one to one, and an integration document records which endpoints the frontend uses and why.

Learnings

  • Keeping a client correct against an authoritative server is the hard part. Many players change shared state at once, and stale data is worse than slow data.
  • Separate simulation truth from presentation. Effects can be expressive without inventing information the server never sent.
  • A complex system becomes playable through its interface. Making hidden rules and permissions visible did more for players than any rulebook.