Grid Expedition — Devpost Submission

Inspiration

Most daily games ask for reflexes or for one clever answer. We wanted a daily game that rewards planning.

Grid Expedition grew out of Ski Grid and the Sofa Lab grid aesthetic: a world that looks 3D but is really a fair, readable grid. Everyone gets the same track on the same day, so the conversation the next morning is not "what did you get?" but "which pickup did you take, and where did it go wrong?"

The core idea is simple: one run crosses three different worlds, so the right vehicle keeps changing. You study the whole track first, then you have to be in the right lane at the right moment to grab the vehicle that gets you through the next hard patch.

What it does

Every UTC day, everyone gets the same 450-row track — about 900 m, in three 150-row segments. The three biomes are drawn from a pool of 8: Snow, Desert, Volcano, Ocean, Jungle, Icefield, City, and Space.

Your base vehicle changes automatically at each biome boundary: ski in the snow, sandboard in the desert, jet ski on the ocean, moon rover in space, and so on. Pickups along the track swap you into a timed vehicle — 15 in total, including a snowmobile, helicopter, dune buggy, submarine, zipline, elephant, subway car, and rocket backpack. Timed vehicles last longer than in the first spec — most last 30 rows, the helicopter, balloon, and subway last 24, and the zipline and rocket last 18 — and each one changes how you move: two lanes per row, flying over obstacles, smashing through them, going straight, or hopping two rows at a time.

Before you run, you see the whole track as a strip: biomes, boundaries, and pickup positions. During the run, a minimap shows where you are and what is coming next.

Scoring rewards speed as well as survival. You get +1 per row, +30/60/90 for gate combos, +10 per collectible, +20/40 for air, and +5 for smashing an obstacle. The time score — 3000 × par ÷ your time, with par around 49.3 seconds — is only awarded if you finish. Crashing earns you only the points you collected on the way, so braking all the way to a safe finish is no longer the best strategy.

There is also an Endless mode: fresh 450-row legs joined end to end, difficulty rising 2% per leg, ranked by distance on its own daily leaderboard. Results can be shared as a 1200×630 image showing your exact path, or as a Wordle-style comment built from the server's replay of your best run.

How we built it

Devvit Web, TypeScript + React, Canvas 2D. No 3D engine and no physics engine: the world is a grid, rendered with a single perspective divide, voxel-block models, and a painter's algorithm.

Vehicles have no code of their own. Every vehicle — 8 base and 15 timed — is one data row of flags: lanes per row, ignore crash/slow, break crash, straight-only, no collect/gate, jump rows, ramp bonus, and turn cooldown. The simulation only reads those flags, so adding a vehicle means adding a row, not a new code path.

The same sim.ts runs on the client and on the server. Runs advance in fixed 1/120 s ticks and record every input as a [tick, code] pair. The server rebuilds the day's track, replays the run from those inputs, and stores the replay's score — never the client's claimed score. The simulation uses only + − × ÷ and min/max, so replays come out bit-identical.

All models are built from basic voxel shapes and baked at build time into atlases: 8 biomes, about 5,800 views, 5.0 MB total as WebP. At runtime the game downloads only the day's biomes, about 0.4–0.8 MB each, and never bakes. Sound and music are synthesised at runtime with the Web Audio API — no audio files — with a different mode and tempo for each biome, and a melody generated from the day's seed, so everyone hears the same tune that day.

The same codebase ships two ways: on Reddit as a Devvit app (grid-expedition, private playtest in r/gridexpedition_dev, Redis keys prefixed ge:), and as a standalone web build where the same server routes run in the page on an in-memory Redis saved to localStorage.

Challenges we ran into

Making 8 biomes and 15 timed vehicles fit in one shared engine was the first fight. The spec said a pickup should sit at least 12 rows before the dense section it helps with, and that the dense section should fall inside the vehicle's duration — impossible for a 6–10-row vehicle. As built, pickup windows are planned first: a clear approach corridor starts 12 rows before the pickup, and the dense patch starts 2 rows after it and ends inside the duration.

Performance was the second. Fog used to be a tinted copy of every sprite angle, which created and uploaded new canvases constantly and caused stutter. Now fog is one gradient overlay, ground is drawn in batched colour runs, and the steady state is about 2 ms a frame at 360 px, with adaptive quality stepping down if drawing stays above 11 ms.

Anti-cheat was the third. A plain score submission can be faked, so the server replays every run — and the replay has to be bit-identical across JavaScript engines. Autopilot inputs are refused outright, since no player control produces those codes.

Smaller ones piled up too: Devvit's Vite plugin refuses server code in the Reddit client bundle, so the Reddit/local switch lives in one platform file; on phones, a finger going down is not a user gesture, so audio had to unlock on pointerup and touchend as well; and pausing had to hide the track behind an overlay, or a pause became free time to study the road ahead.

Accomplishments that we're proud of

The autopilot proves the game is fair: 200/200 days of 2026 finished holding Tuck, 60/60 finished cruising, and all 336 ordered biome routes finished — every biome 42/42 in each segment position. With pickup-grabbing enabled, all 15 timed vehicles were driven, with no crash while driving any of them.

npm test passes all 12 tests, and npm run build passes. The build-time atlas pipeline cut 9.3 MB of PNGs to 5.0 MB of WebP with no visible difference at 3× zoom. In Endless mode, the autopilot reached the 200-leg cap on 4 of 5 days — 90,000 rows, 180 km, about 88.5 minutes of play.

Most of all, the scoring change worked: on an empty track, braking all the way is worth 990 time points, cruising is worth 3000, and holding Tuck is worth 5438. Fast and risky beats slow and safe, and slow and safe still beats crashing.

What we learned

Planning is a better daily-game skill than reflexes — but only if the player can actually see the plan. The whole-track preview and minimap are not extras; without them, the pickups are just random power-ups.

Data beats code for variety. Once vehicles were flags in a table, 15 timed vehicles cost almost nothing to add, and the tests could read each vehicle's length from the data instead of hard-coding it.

A scoring rule is a strategy rule. The old finish bonus made braking the optimal play. Making the time score finish-only, with no cap, changed how the game is played without changing a single obstacle.

And a daily game lives or dies on trust: same track for everyone, same tune for everyone, and a server that replays rather than believes.

What's next for Grid Expedition

First, the two items still open in the repo: try it on a real phone — touch, frame rate, and iOS audio — and run the manual playtest checklist in r/gridexpedition_dev.

Then, tuning from real players rather than the autopilot. Simulated casual players finish only 28% of daily runs and typically crash around row 170, early in the second biome, where obstacle density passes about 10%. That is the first balance knob to turn.

After that: more Endless polish, more share-card detail, and — only if playtesting asks for it — new timed vehicles as data rows, not new systems.

Built With

Share this project:

Updates

Submission history