All work

2025 / 3AM Experiences · proprietary / In production

Phoenix.Engine

The TypeScript engine behind Mope.io, Evolution.io and my own games. Rendering, physics and networking are independent systems that run alone or together, on the client, on the server, or both.

Live: rigid circles resolved with a uniform-grid broad-phase, written for this page. Cell shading shows how many bodies each cell holds.
entities simulated in a browser tab
55k+
targets: web, desktop, mobile
3

Overview

Phoenix.Engine started from one constraint: browser games with thousands of concurrent players need the same discipline as native engines. That means predictable memory, data-oriented hot paths, and a network layer designed around bandwidth rather than convenience.

The same simulation code runs on a Node.js server as the authority and in the browser for prediction and rendering. A peer-to-peer variant over WebRTC powers Pixiball, where there is no server at all.

What I built

  1. 01 Hardware-accelerated renderer (WebGL, with a WebGPU path) built around batching and minimal state changes.
  2. 02 Spatial partitioning for broad-phase collision and visibility queries across tens of thousands of bodies.
  3. 03 Simulation and rendering on separate threads through Web Workers.
  4. 04 Zero-copy binary networking, the work that later became BinaryPack and BinarySchema.
  5. 05 Production hardening: packet validation, rate limits and server-side cheat detection.
  6. 06 One codebase deployed to web, desktop (Tauri) and mobile.