SELECTED WORK / CASE STUDY
CREATIVE CODE / 3D WEB
Punch Bub.
A game I made for my girlfriend for when she’s annoyed at me.
A tiny 3D copy of our apartment with a blocky me in it, for her to punch whenever I’m being annoying. Every few hits I drop a reason I love her.
Audience of one
One HTML file
01 / THE BUILD
The starting point
I was away for a few weeks, and long distance makes small arguments feel bigger. She jokes about wanting to beat me up when I’m being annoying, so I gave her a way to do it that ends with something sweet. I wanted it to feel like our place.
02 / THE BUILD
The experience
01
Punch: tap me and I go flying, bounce off the floor and get back up. Hold to wind up a harder punch that sends me further and gets a different reaction.
02
Chappal: throw a slipper at me, the classic desi move.
03
Pillow: a softer hit for when she’s only a little annoyed.
04
Hug: hearts float up, my eyes turn into hearts and I say something sweet.
05
Every few hits I drop a heart. Each one unlocks a reason I love her, and she can reread them all in her collection.
06
Tap anything in the room, like the couch, the TV or the rug, and I walk over and say something about it.
03 / THE BUILD
Under the hood
It’s one HTML file on three.js, with no framework or bundler. Everything in the room is made of boxes, the faces and textures are pixel art drawn in code, and every sound is generated in the browser, so there are no image or sound files to load. All the words live in one JSON file that gets baked into the page. It’s hosted on Vercel and can be added to her home screen like an app.
Built from our actual apartment
I used photos of our place to lay out the room, and it took a few rounds to get the furniture where it really is. The little portraits on the gallery wall are her and me.
Made to feel good to hit
There’s no physics engine. I wrote simple bouncing and tumbling, so every hit sends me flailing, landing and getting back up, with a squash on impact, a camera shake and a thud. A full-power punch feels very different from a pillow.
No image or sound files
My face (five expressions, from bracing for a punch to heart eyes), the zebra rug and the art on the walls are drawn as pixel art in code, and every sound is made in the browser.
Keeping the reasons real
Most of the reasons came from real moments and our messages. I tagged each one with where it came from, so I knew which ones still sounded generic and needed rewriting.
Just for her
The link isn’t shared anywhere, and the version she plays has none of my editing tools in it.
BUILT WITH
three.js
JavaScript
WebGL
Canvas 2D
Web Audio
Playwright
Vercel
04 / THE BUILD
Making it dependable
Tested at phone and laptop sizes, with touch and with a mouse.
Loads nothing from other sites, and search engines are told to stay away.
The video on this page was recorded frame by frame so it plays smoothly.
PROJECT STATUS
A private gift, so there’s no public link.



See it in action
KEEP EXPLORING
Find it in Project Universe