Inspiration

We wanted a game you understand in one second and keep playing for weeks: one button, one rope, one city skyline.

The Reddit part came from a simple idea. If everyone swings through exactly the same course today, then every comment, every ghost and every death means something to everyone else in the thread. A leaderboard turns into a conversation.

What it does

Hookline is a one-button swinging game that lives inside a Reddit post.

  • Hold to grab, let go to fly. Grab the nearest hook, swing, release and fly. Land on rooftops and tap to hop. Hit a wall, spikes or the street and a tap restarts you in under 300 ms.
  • A new course every day, the same for everyone. Six levels generated from the date, plus a daily twist (wind storm, low gravity, blackout, rush hour, star shower) and a featured section, such as Flood Tuesday or Crane Thursday.
  • Race the subreddit. Race your best ghost, the par ghost and today's top players. A graveyard heat map shows where everyone died today.
  • Ghost challenges. Sharing your result in the comments turns your run into a challenge. Anyone can tap 👻 Race, pick you and race your ghost.
  • Watch any run. Tap anyone on a leaderboard and their exact run plays back.
  • Release rating. Every let-go is rated PERFECT / GOOD / EARLY / LATE from the rope angle, which teaches the timing that separates good players.
  • Endless mode. One never-ending city per day, the same for everyone, built zone by zone and getting meaner as you go.
  • Modes. Seven packs of 12 levels: Flood (save the cats), Spike Alley, Colour Rush, Moon Swing, Crane Chaos, Gusty Heights and Lights Out. The first time you open a pack, the game shows you how it works and how you'll crash. Earn 1–3 ★ per level, and one tap takes you to the next level.
  • Community levels. Build a level, clear it yourself, and it's published as its own Reddit post. A Hardest level board ranks levels by the lowest clear rate.
  • A daily post that runs itself. At midnight UTC the app posts the new course, comments yesterday's recap and pins it. The feed card shows today's #1 and your streak.
  • Coins, powers and fair boards. Daily rewards (a 7-day calendar), coins and four powers (jump, dash, shield, long rope) for Endless and levels. Every board has a Fair list (no powers) by default, so the best swinger always wins.
  • A swinger that is yours. Bodies, faces, colours, ropes and trails, or draw your own 16×16 pixel character. It follows you onto every board and ghost.

How we built it

Stack: Devvit Web (inline splash + expanded game, Redis, Scheduler, submitCustomPost, app comments), Phaser for rendering, Hono on the server and TypeScript end to end.

A deterministic simulation shared by client and server

The game runs on a fixed timestep

$$\Delta t = \frac{1}{120}\ \text{s}$$

with a seeded RNG (mulberry32). A run is just an input log of changes, a list of (tick, hold, choice) entries. The client sends only that log. The server replays it on its own copy of the course and stores only the result it computed itself, so a time can't be faked.

Float trigonometry (Math.sin, atan2, hypot) can differ between V8 and iOS JavaScriptCore, which would break replays. So the simulation uses its own exact sine and distance functions, and a unit test fails the build if anyone uses the built-ins.

While swinging, the rope keeps the swinger on a circle around the hook h (rope length L):

$$\lVert \mathbf{p} - \mathbf{h} \rVert \le L$$

The release rating comes from the rope angle θ past vertical at the moment you let go. PERFECT is 0.62 ≤ θ ≤ 0.92 rad. The generator's own par runs release at about 0.76 rad.

Courses that are beatable by construction

  1. Lay out the hooks.
  2. A solver bot (depth-first search over hook choice, grab timing and release angle) finds a path through them: the par line.
  3. Place buildings, spikes and hazards a set clearance c away from the par line. Moving hazards are phase-timed so the par run slips past them.
  4. Replay the par run on the finished course to prove it still works.

Difficulty is how far you can stray from the par line. We tuned c with noisy bots of random skill until about 18% of them finish an average day.

The daily score is the time in ticks with a bonus for stars (each star is worth half a second):

$$\text{score} = \text{ticks} - 60 \cdot \text{stars}$$

Medals sit just above par: gold for ≤ par + 1 s, silver for ≤ par + 4 s, bronze for any finish.

Endless, streamed

The solver can resume from any state, so the endless city is built 2000 px at a time: hooks two zones ahead, the par line one zone ahead, then buildings and hazards around it. Nothing near the player ever changes, so the server rebuilds the identical city to verify a run.

Built for phones

  • One thumb, touch targets of 44 px or more, portrait first.
  • Static art is baked into 1024-px chunk textures. Endless streams and frees them one per frame.
  • The client bundle is about 1.5 MB (382 KB gzipped).
  • All art is drawn in code with Phaser Graphics, with no image files and no AI art. All sound is synthesized with Web Audio, with no audio files. The music builds one note per grab as your flow grows.

Challenges we ran into

  • Determinism across devices. We kept engine-dependent math out of the simulation and pinned fingerprints of generated courses in tests, so any change that would alter a past day's course fails the build.
  • Endless dead ends. Our first endless generator handed one zone to the next in the middle of a doomed long jump. Now the hand-off happens only right after a release that the solver followed with a real grab, and an unsolvable stretch is laid out again, easier. That took 30 test cities from frequent dead ends to none.
  • Fair hazards. A wrecking ball on a long chain can reach the par line from far away. Checking hazards against every moment the par line is within reach fixed rare unfair deaths.
  • Too much going on. Early playtesters were overwhelmed. We cut the start screen down to one line, moved menus into a simple bottom bar, and replaced text explanations with a show-don't-tell demo for each mode.

Accomplishments that we're proud of

  • Every daily course, endless zone and mode level is provably beatable, and every score is verified by the server.
  • A complete daily loop that runs with nobody tending it: post, recap, pin, feed card, streaks and rewards.
  • Community levels are guaranteed to be clearable, because you can't publish what you can't beat.
  • Fair boards, where skill, not purchases, decides who's on top.

What we learned

The strongest daily-game hook is shared context. The same course for everyone turns a leaderboard into a conversation.

Determinism is a feature you design for from the first line, not something you bolt on.

Simpler always won: every time we removed text or a button, playtesters understood the game faster.

What's next for Hookline

  • More worlds (new themes for the city) and more mode packs.
  • Weekly events, such as a Sunday marathon course.
  • Community-voted "level of the day" posts.
  • Subreddit vs. subreddit races on the same daily course.

Built With

Share this project:

Updates

Submission history