SYS_STATUS: ONLINE

Rahul M. Shah
Back to Games

Telemetry design case study

Phase Shift: RGB // Telemetry

A precision platformer whose game client records where and how each run ends, paired with the heatmap built to read those events. The public build has no data endpoint connected, so the dashboard below runs on sample data.

HTML5 CanvasAABB CollisionEvent TelemetrySpatial Heatmap
ARCADE_CABINET_V1.04 // PHASESHIFT_RGB
ONLINE
BUILD_HOSTED :: GITHUB_PAGES

PHASE SHIFT: RGB

Precision platformer with a built-in telemetry client. Its spatial death events are what the heatmap below is built to read.

Telemetry Analysis

The view a designer would use to find where players fail: on a hard jump, or on a hitbox that's wrong. Everything below is sample data. The public build has no telemetry endpoint connected, so it doesn't collect player data.

PHASE SHIFT: RGB // TELEMETRY HUB
DATA SOURCE:SAMPLE / NOT LIVE
DEATH EVENTx, y · level · color · time aliveQueued every time the player dies
LEVEL COMPLETElevel · total time · color shiftsQueued and flushed on every clear
DELIVERY5 s batches · SHA-256 headerPublic build: no endpoint, console only
DEATH HEATMAP · SAMPLE DATA
PLATFORMS
HAZARDS
SAMPLE DEATH POINTS
How to read it: each dot is the (x, y) from one DEATH event, and clusters show where runs end. With real data, a cluster beside a hazard points to a jump that's hard on purpose or too hard, and a cluster on open ground points to a collision bug. The dots and the layout above are 200 generated points on an illustrative level, not player data: the public build has no endpoint connected, so it hasn't collected any.

A Fixed Timestep, No Mid-Frame Allocation

The engine steps physics on a fixed 16.67 ms timestep (60 updates a second), outside React's render cycle, and resolves collisions one axis at a time so the player doesn't snag on tile corners. Particles come from a pool of 200 allocated at startup, so a burst doesn't create garbage mid-frame, and every sound is synthesised with the Web Audio API instead of downloaded. It ships as a static build on GitHub Pages, so there's no server to run.

What the Game Records

A small telemetry client queues a DEATH event with the player's (x, y), level, active color and time alive whenever the player dies, and a LEVEL_COMPLETE event with total time and color shifts on every clear. Every five seconds it batches the queue, adds a SHA-256 hash of the payload as a header, and POSTs it to an endpoint set at build time, without ever blocking a frame. The public build has no endpoint set, so batches go to the browser console and nothing leaves the player's machine. The heatmap is the reading side, and it hasn't had real data to read yet.

Levels as Data

Each level is a JSON definition of platforms, colors, hazards and a spawn point, checked by a level parser with its own unit tests, and the physics constants live in one config file. Today those definitions ship inside the build, so retuning a jump still means a redeploy. Serving the same format remotely is what would make A/B difficulty tests possible; that part isn't built.

Why I Built It

Building telemetry into a game from the code up meant deciding what to log, how to send it without costing frame time, and what view a designer needs to act on it: the same questions that come up when a live game gets instrumented at scale.

Knowing what an event costs to send, and what it can and can't tell you, helps when I'm scoping that kind of work with engineers, designers and analysts.