Inspiration
I wanted a game you understand in ten seconds and can't put down. The best Reddit games are the ones a whole subreddit plays on the same day and then argues about in the comments. So I built around one idea: everybody gets the same spike today, and fewest tries wins.
What it does
You pull back from the ball and let go. The ball never slows down. It has to hit the side walls a set number of times before the cup at the top opens, and spikes are the only thing that can pop it.
There are two ways to play.
Today's spike. One new level every day, the same for everyone on Reddit. Fewest tries wins and time breaks ties. You see ghosts of where other players missed, but never a winning shot. Clear it on back to back days and you get a streak badge next to your username in the subreddit.
The climb. One hundred levels in ten towers. Every level adds a spike, and every tower is taller and has its own look. Level 100 has two winning aims out of about 1,760.
Your aim is a number, down to a tenth of a degree. That means people can post "try 62.4" in the comments and somebody else can go test it.
How we built it
It runs on Devvit Web. The game is plain Canvas with TypeScript, so it loads fast in the feed. The server is Hono, and Redis holds progress, the daily board and streaks. The Devvit scheduler puts up a new Daily Spike post every day at midnight Pacific.
All of the art is drawn in code and all of the sounds are made in code. There are no image or audio files in the project.
Challenges we ran into
The hard part was making it fair. A level that looks possible but has no winning shot would ruin the whole game, and I did not want to guess.
So every level was built by a solver, then checked again by a second simulation that shares no code with the first. All 100 climb levels and all 120 daily levels have a real winning shot you can reach with the aim buttons. Shooting straight up never wins on any of them.
The second problem was cheating. The game and the server use the same rules file, and the server replays every shot and keeps its own count of tries. A score on the board is a score somebody really shot.
Aiming with a finger was the third. Late levels need a tenth of a degree, so I added nudge buttons, a readout of the exact angle, and a Shoot button that fires the same aim again.
Accomplishments that we're proud of
It feels like a real game. You can miss, nudge once and try again in about two seconds, and that loop is very hard to stop.
I'm also proud that I can say every level is beatable and actually back it up.
What we learned
Simple rules need much more checking than I expected. Most of my time went into proving the levels work, and that was the right place to spend it.
I also learned how much a shared daily level changes a game. Playing alone is fine. Playing the same spike as everyone else is what makes you come back.
What's next for 100 Spike Challenge
Sharing your score to the comments with one tap, and a weekly tower that is harder than the daily. Neither one is built yet.
Built With
- devvit
- hono
- html5
- redis
- typescript