ProjectsItem 6 of 8

Käsbach – Nacht der Untoten

A co-op zombie game in the browser for one to four players: a lakeside hut in the Käsbach woods, boarded-up windows, more undead every round.

Open zombies.gigges.de Browser game

What it is

A survival game for one to four players right in the browser, with nothing to install. Join a room by code or via quick play and hold out wave after wave; points earned from hits and repairs unlock doors, weapons and upgrades.

Technical highlights

  1. Authoritative server: it simulates the game at a fixed tick rate while browsers only send input over WebSocket.
  2. Private rooms by code and public matchmaking for up to four players each, all held in memory by a single Bun process.
  3. Rendered with the three.js WebGPU backend, built for desktop GPUs.
  4. Escalating rounds with dedicated hellhound waves in between.

Technology

  • TypeScript
  • three.js (WebGPU)
  • Vite
  • Bun
  • WebSocket
  • Kubernetes

Runs on

Bun game server in its own container image, one WebSocket per player.

  • Cloudflare edgeReceives every request, terminates TLS and shields the servers; static files are cached.
  • Cloudflare TunnelOne outbound connection to Cloudflare per server, so the applications need no open ports. At home every application runs through it; in the data centre, the sign-in service.
  • Traefik (ingress)Routes each request to its application by hostname, including those in the data centre. Its Prometheus counters are the source of the live dots in this drawing.
  • Server at home (microk8s)Runs the Kubernetes control plane and most applications, each in its own namespace, fenced off by NetworkPolicies.
  • OpenBao + External SecretsCredentials live in OpenBao; the External Secrets Operator syncs them into the applications on both servers. For Sealdesk, OpenBao Transit holds the document keys.
  • Monitoring (Grafana, Mimir, Alloy)Alloy collects the Prometheus metrics of both servers and all applications, Mimir stores them, Grafana shows them. BOB also reports errors to a self-hosted, Sentry-compatible error tracker.
  • Container registry (GitLab)Custom container images live in a private registry; the static sites run a stock nginx with their files in ConfigMaps.

The platform in the drawing

Images

Start menu with quick play, room code and controls
Start menu with quick play, room code and controls
Boarding up a window again
Boarding up a window again

Credits and licences

  • zombie characters and animations: Mixamo (Adobe), Mixamo licence: royalty-free use in projects source
  • pistol animations ("FPS pistol animations"): Cransh, CC BY 4.0
  • pistol model ("Springfield Armory XD Mod.2 Sub-Compact"): raimeiyonke, CC BY 4.0 source
  • first-person arms ("FP Arms"): DJMaesen (bumstrum), CC BY-NC 4.0 source
  • further models, textures and sounds: Quaternius, Poly Haven, ambientCG, Rikindle3D, Kenney, Freesound and OpenGameArt authors, CC0 1.0

Planning something similar? Discuss a project