Inspiration
Pull-the-pin puzzles are some of the most satisfying games on phones: one tap and everything moves. But they are solo and endless. We wanted the same instant fun in a format that fits Reddit: one shared puzzle per day, the same for the whole community, so people can compare runs in the comments.
What it does
Every day at 00:00 UTC the app posts a new puzzle, Down the Pipe #N. In each puzzle a little guy is trapped in a box hanging above a green pipe.
- Tap a golden ring to pull its pin.
- Drag around the box to rotate it.
- Lava burns him, water turns the whole lava pool it touches into stone, and if lava falls into the pipe, the pipe melts.
Order matters: pull the wrong pin first and it's over. When he makes it, the pipe swallows him and you can watch the bulge travel down.
Reddit features:
- one shared daily puzzle post, created by a scheduled job;
- a daily leaderboard (fewest moves, then fastest time);
- streaks for solving on consecutive days;
- a Share result button that posts your result as a comment, e.g.
Down the Pipe #12 — ⭐⭐⭐ in 3 moves (11.4s) · 🔥 4-day streak; - practice levels after the daily;
- a light inline launch screen in the feed that doesn't trap scrolling, with the 3D game opening in expanded mode.
How we built it
- Devvit Web: Hono server, Redis (sorted set per day for the leaderboard, hash per user for streaks), scheduler for the daily post, user actions for comments.
- three.js for rendering, planck.js (a Box2D port) for physics. The game is played on a 2D plane but rendered in 3D.
- Liquids: each drop draws a soft blob into an offscreen texture, then a shader thresholds that field to get one continuous surface that merges and splits like real liquid.
- Sound: every effect is synthesized live with WebAudio (filtered noise, pitch sweeps, small reverb), so there are no audio files to load.
- Every level is checked by simulation: the intended solution must win and the traps must lose.
Challenges we ran into
- Making liquids look liquid instead of a pile of marbles, and stay fast on phones.
- Physics stability: a rotating container can push small drops through thin walls, so we capped the rotation speed and run the physics at 120 Hz.
- Designing puzzles where the order of actions really matters, without making them unfair.
Accomplishments that we're proud of
The pipe swallow animation, the water-cools-lava chain reaction, and a daily loop that takes under a minute to play.
What we learned
How to design for the Reddit feed (fast inline screen, no scroll traps), and how much small details like sounds and squash-and-stretch matter for game feel.
What's next
- A bigger daily puzzle library.
- A level editor so the community can submit puzzles that become future dailies, credited to their author.
- Weekly leaderboards and post flair for streaks.
Built With
- box2d
- devvit
- hono
- javascript
- planck.js
- redis
- three.js
- typescript
- vite
- webaudio