Inspiration
The best daily games on the internet work because everyone plays the same thing on the same day, and then talks about it. I wanted that shared moment, but inside a real-time 3D game instead of a word puzzle.
So: every day, one plane goes down over the same jungle. Every Redditor gets the same two emergencies (a lightning storm that sets the engine on fire, a bird strike that becomes a fuel leak, …), the same wreck, the same loot, and the same tiger. Comments stop being "nice game" and become "did anyone else get mauled by the river at dusk?"
What it does
Crash Day is a daily 3D survival game that runs inside a Reddit post.
- The crash. Tap to take off, then something goes wrong. Grab one item from the cabin and tap Brace at the right moment; a perfect brace saves your health.
- Survive five days. Keep four rings up (health, food, water, warmth). Scavenge, craft a spear, a bow, campfires, a lean-to, poultices and splints.
- The jungle fights back. A stalking tiger, vipers that poison, boar herds, alligators in the river, and from night 3 a wolf pack with glowing eyes. Storms douse unsheltered fires, heavy hits can break a leg, and supply crates parachute in on days 2 and 4.
- Rescue. Make it to dawn of day 6 and a helicopter winches you out.
Difficulty ramps every day. With $d$ the in-game day,
$$t = \frac{d-1}{4}, \qquad \text{damage} \times (0.8 + 0.65\,t), \qquad \text{thirst/hunger drain} \times (1 + 0.7\,t)$$
so day 1 is forgiving and day 5 is brutal.
Built for Reddit
- A new post every day from a scheduled job, and each post keeps its own day's crash, leaderboard and graves.
- Daily challenge chosen by the community. Each day has a twist (Pacifist, Firekeeper, Black box, Hunter, …). From the end card, players vote on tomorrow's; the server locks in the winner and puts it in the next post's title.
- Graves of real players. Wherever a Redditor died today, a grave with their username stands in everyone's jungle. Walk up to it to read how they died.
- Leaderboard, streaks, achievements and flair. The score is
$$S = s + 500R + 100T + 15K + 300C$$
where $s$ is seconds survived, $R$ rescued, $T$ drove off the tiger, $K$ animals killed and $C$ challenge completed. Players collect 8 badges and earn flair like Survivor or Tiger Slayer, and can post their run to the comments in one tap.
How I built it
- Devvit Web: a Hono server with Redis (per-day sorted sets for the leaderboard, hashes for stats, graves, votes and badges), the scheduler for daily posts, and the Reddit API for flair, comments and avatars.
- Client: React Three Fiber / three.js, built with Vite. The world is seeded from a hash of the date, so the terrain, river, loot and crash are identical for every player.
- Animals: the viper and the alligator are skinned meshes with bones and procedurally painted canvas textures. The tiger, boars and wolves are rigged from primitives. Every creature shares one registry, so attacks, the danger heartbeat, the dodge prompt and arrows work the same for all of them.
- Performance: chunked, instanced vegetation with culling, merged static meshes to cut draw calls, shader warm-up during the crash blackout, adaptive resolution, and a low-quality default on phones.
Challenges
- Mobile webviews. Reddit's in-app webview behaves differently from a desktop browser. I tested on a real Android phone over USB and found problems I would never have seen on desktop: the crash intro started before the post was even visible (fixed with a Tap to take off gate), and the end card would not scroll (fixed with custom drag-scrolling).
- Portrait combat. On a tall phone screen the tiger often attacked from off-screen. A wider field of view, an edge arrow pointing at the threat, and a camera that turns toward an animal about to strike made attacks readable and dodgeable.
- The camera in a dense jungle. First it ended up inside tree crowns; my first fix pulled the camera in, which made it zoom in and out while running. The final version keeps a fixed distance and slides under the canopy instead.
- Platform limits. Not every permission works as the user, and the Journeys API was not available, so funnel analytics are Redis counters and "Join" falls back to opening the subreddit.
What I learned
- Designing the data around the day (
cd:{day}:…keys with a TTL) made daily posts, leaderboards, votes and graves all fall out naturally. - A shared seed is a design tool, not just a technical trick: it is what turns a single-player game into a community conversation.
- Test on the real device early. Most of the important fixes came from playing on a phone, not from the code.
What's next
More crash causes and biomes, weekly leaderboards, and letting players leave a short message in a bottle for others to find.