What it is
Throw the Knight is a daily game inside a Reddit post. Every day there is a new field full of bombs. You throw a knight with a catapult and try to go as far as possible. You have five throws, the best one goes to the leaderboard.
How to play
- Tap to set the angle, tap again to set the power.
- In the air, BOOST gives a jump up and forward. Hold DIVE to fall onto a bomb.
- When the knight touches a bomb, it explodes and pushes him further. Several bombs in a row make a combo.
- He stops when he loses speed. It might be very close to the next bomb.
The first throw shows a small guide, there is no tutorial screen.
Daily content
- A new post every day at 00:05 UTC, posted by the app.
- Every day the lands come in a different order. Most days have a twist: low gravity, tail wind, bomb rain, giant bombs, slippery ground or extra bounce.
- After the Edge of the World the lands repeat, so there is no end.
- After your five throws you can place a bomb on tomorrow's field. It shows your username, and the next day you see how many knights it launched.
- At the end of the day the app writes a comment with the top 3 and the longest combo.
Things in the field
Bombs of different sizes, a golden bomb, rockets, cannons, spring pads, cluster bombs, sky mines, gulls with bombs and storm clouds. There are also pickups that turn the knight into a cannonball, a rubber ball, a bird or a rocket for a few seconds.
Reddit features
- Post your distance as a comment.
- Share a throw as a replay post.
- Leaderboard with snoovatars, user flair, streaks and Journeys.
- You can play without logging in.
How we built it
- Devvit Web, Phaser 4, TypeScript, Vite, Hono and Redis.
- We wrote our own physics. It is deterministic, so the server replays every throw from the inputs and calculates the distance. A modified client can't send a fake score.
- All the pixel art is made by hand for this game. All sounds are generated in code, there are no audio files.
Challenges
- Getting the server replay to match the phone exactly, also with the craters that earlier throws leave in the ground.
- Phones don't load very wide images, so we split the landscapes in tiles.
- Keeping it simple. We built a cosmetics system and then turned it off, the game was better without it.
- Balancing distance, so the first throw feels good and good players can go much further.
What we learned
Showing works better than explaining. Most text hints ended up replaced by an animation.
What's next
More characters to throw, each one flying in a different way: a pig, a small dragon, a monk, a king.
Built With
- devvit
- hono
- node.js
- phaser.js
- redis
- typescript
- vite
- vitest