Inspiration
I saw a post on r/notinteresting, found it pretty funny, and thought it was a good way to settle fights. So I turned it into a game. This is the post: https://www.reddit.com/r/notinteresting/s/YuaX7vhtEt
I didn't get the app name I wanted, though, so I had to settle for onepettyescalation.
What it does
Escalate lets two people settle an argument with petty, silly moves instead of words.
- A fight is a post. Anyone starts with a move, a lick, a poke, a stare, a stolen hat. The first person to answer makes the next move.
- Every round is the same move, just bigger or more in numbers than the last. The tongue gets longer, the stolen hats increase in number, the ice-cream cone outgrows the frame.
- Audience can take sides. Anyone who is not fighting can back one fighter and cheer for them with foam fingers, pom-poms and drum rolls.
- One loses by surrendering, or by not making a move for 24 hours. There is no other way to lose, so fights go on as long as both people stay stubborn. I really want to see how long people can continue without getting bored of petty moves where there is no shooting, no running just one action.
- An offence every day. A new lobby post is posted every day with "today's offence", and there are streaks, a streak flair, score boards and a result card when a fight ends.
- One can play from the feed. The move buttons are on the post: one tap starts a fight, answers one, or cheers.
There is no place to comment in the game or to use slurs. Every move comes from a predefined list of actions, so nothing can turn uglier than what it is. It stays standard petty, never painful.
How I built it
Escalate runs on Devvit Web. Each post has two view, a small one in the feed that plays the latest round and holds the move buttons, and a full one with the whole fight, the move picker and the scores.
- Drawing. Every move is drawn on a canvas, and each one is a pure function of time and round number. The same code plays a round, replays it, shows it as a still and draws round 30 as happily as round 1.
- Server. The rules live on the server: whose turn it is, the 24-hour forfeit, surrender, sides, cheers, streaks and scores. All of it is stored in Redis, and a scheduled job puts up the daily post.
- Identity. The fighter is the Reddit account. The app comments on the post when someone joins and when a fight ends.
- Tests. The rules were written tests-first, against a fake Redis and a fake Reddit, so I could change them without breaking fights.
- AI use. Yes, AI was used for the background images and assisted in coding.
Challenges I ran into
- The look and feel. I first tried with SVGs, which looked a bit basic. I wanted the characters to look a bit fugly and the sets pretty. I could have made it with three.js, but it didn't make sense to use three.js for a petty fight scene.
- Fitting a game into a feed post. Had to take number of passes, the UI looks different in a feed than it would in a webapp so that took couple of passes.
- Playing it should take one tap. Keeping the screens minimal and yet understandable took some passes too.
- Keeping it harmless. To figure out a list of petty fights that are non-violent was a bit tough.
Accomplishments that I'm proud of
- A fight reads as one continuous, escalating cartoon, and it is funny to watch even if someone is not in it.
- The whole game is playable from the feed.
- Spectators have something to do, so a fight between two people is entertainment for the whole sub.
- That it's just humour.
What I learned
- I have been thinking of adding some small apps on Devvit but really didn't think it would be this easy until I signed up.
What's next for Escalate
- A feedback loop from users on what petty fight they would want next.
- A reminder when it is your turn.
- Tournaments inside a subreddit, and sub-versus-sub fights.
- More UI updates, it still needs improvements on boards.