Inspiration
Robot-combat shows like BattleBots are all about trade-offs: a heavy hammer or a fast spinner, thick armour or speed. Most "draw your fighter" games skip that and just animate a doodle. I wanted a game where your drawing is the machine. You draw the body, bolt on weapons and wheels, pick what it's made of, and physics decides whether it was a good idea.
Reddit is the perfect home for it. Every robot is user-made content, so the subreddit's robots become everyone else's opponents, and the community votes on which one becomes the weekly Boss.
What it does
- Draw your robot. Sketch the body with your finger, any shape you like. The physics shape comes from your actual drawing.
- Bolt on weapons. Choose from 12 (hammer, spinner, flipper, saw, crusher, bow, gun, cannon…). Bolt them on top, on the front, anywhere you tap, or facing backward. Add a second weapon: a saw on the front and a bow on the back that shoots behind you, for example.
- Pick how it moves. Wheels, monster wheels, tank treads that climb over enemies, a hover pad, a spring leg…
- Choose materials wisely. Metals like steel give more HP and harder hits, but they're heavier, and every robot has a weight limit. Spend scrap to upgrade your chassis and carry more.
- Fight with real physics. Weapons swing, spin and fire by themselves; you drive, jump, double-jump and flip. Fights are best of 3, won by K.O. or by knocking the other robot into a pit. There are 5 maps with ramps, moving bridges, pop-up spikes and crushers.
- Play with the community:
- Live 1v1 against anyone online, with a one-tap computer opponent if nobody's around.
- Ranked fights against other players' saved robots, driven by the computer while their owners are away.
- Boss Vote: every week players enter robots and vote. The highest-voted robot becomes that week's Boss of the Week, and everyone fights it.
- A daily challenge and a 12-robot computer ladder.
- Built for Reddit:
- A daily post with a highlights comment.
- Automatic user flair (Boss of the Week, win milestones).
- Report and mod-review tools.
- Works on phones (portrait or landscape), tablets and desktop.
How I built it
- Devvit Web:
- Hono server routes and Redis for every robot, profile, vote and leaderboard.
- The Reddit API for posts, comments and flair.
- A daily scheduler, an install trigger, and moderator menu items and forms.
- Devvit Realtime for live 1v1.
- Phaser 4 + Matter.js on the client. Drawings are stored as vector strokes, then rasterised and turned into convex physics pieces (outline trace, simplification, convex decomposition). Weapons are posed around their bolts, so a hammer always lands where you drew it.
- One rule book: all game rules live in a shared
GameServicewritten against a tiny key-value interface. The server runs it on Redis, local development runs the same code in the browser, and 43 unit tests run it in memory. - TypeScript end to end: shared types between client and server. Maps are data (JSON) with a validator, ready for community-made maps.
Challenges I ran into
- Making drawings fight fairly. Hand-drawn shapes have wild weight distributions. I compute inertia myself, pose weapons kinematically instead of with motors (front-heavy hammers kept somersaulting the robot), and enforce a weight limit tied to materials.
- Live multiplayer through a serverless relay. Every message goes phone → server → realtime → phone, and early versions froze under load. The fix was a host-authoritative design:
- tiny chassis-only snapshots about 8 times a second;
- a relay route that does one small Redis read;
- a send queue that never lets stale messages pile up;
- prediction and smoothing on the other phone.
- Every screen size. Reddit's in-app web view on phones is much shorter than a browser. The garage gives its controls the space they need first, and the fight view fills the screen between the score bar and the touch controls.
Accomplishments I'm proud of
- You can draw literally anything and it fights.
- Live 1v1, ranked play against saved robots, a weekly community Boss and a computer ladder all share one economy and one rule book.
- It's fully playable on a phone inside the Reddit app.
What I learned
- On a serverless relay, the message budget is the multiplayer design. Send less, and send only the newest.
- Players need to see why something hurt them. Invisible hazards feel like bugs, even when they work.
What's next
- Community-made maps with an in-game map editor and a weekly map vote.
- More parts: walker legs, flails, clamps, shields.
- Shareable fight replays as Reddit comments.
Built With
- devvit
- devvit-realtime
- devvit-web
- hono
- html5
- javascript
- matter-js
- node.js
- phaser.js
- redis
- typescript
- vite
- vitest