A trailer made of code
Hedge is a daily calibration trivia game I build solo; the architecture lives in the case study. This one is from the week Hedge 3.0 went to the App Store, and it is about a promo video with no video editor anywhere in it.
Hedge 3.0 is the biggest update since launch. Hedge Party, an Apple TV app, iPhone Duo support. And every one of those needs store screenshots, App Previews, and something to post so people actually find out it exists. I had the screenshots done and a perfectly fine promo video cut from real screen recordings of the game. It looked like the game. That was the problem, it looked like a demo.
The brief was one moment
A while back I had Claude build a motion graphics intro for another project, and the whole thing was code. No video editor, no After Effects. Every frame was drawn by a web page, and the music was synthesized by a script, sample by sample, scored to the same timeline so every hit landed on its frame. I had also seen some wild stuff people were making this way, whole ocean scenes, water and sky, all generated in code. So I asked for one of those for Hedge.
The question back was the right one: when you've watched someone get hooked on Hedge, what was the moment? That one was easy. It's the 99% bet. Somebody slides confidence all the way up to "Bet the house," swipes, and either it lands or it doesn't, and the whole room reacts either way. People also love the badges. And nobody knows Hedge Party exists yet, which I think is going to be the thing that brings new people in.
So that became the arc. It's trivia, no it's a bet. A question, confidence climbs to 99, TRUE, nailed it. Then a second 99 that misses, with a glitch and a screen shake. Bet what you know, hedge what you don't. Thirty-six badges. Then the tie-dye party swirl floods the screen and you're in a living room with a TV and five phones locking in.
Every frame is a function of time
The trailer is one HTML page with a seek(t) function. Give it a time and it draws exactly that frame, nothing carried over from the frame before. Headless Chrome walks it at 60 frames a second and takes 1,801 screenshots, ffmpeg stitches them, and out comes a 30 second vertical video. Same page in, same film out, every time.
It uses the real stuff. The app's ocean palette and fonts, the actual badge artwork, the actual swirl image that the Party orb uses. One small file holds the beat sheet, 120 BPM, every moment in seconds. The page draws to it and the music script reads the same file, so if I nudge the miss half a second later, the sad trombone moves with it. The whole score synthesizes in under two seconds. Kick drum, bass, bells, a riser into the drop, and yes, a sad trombone, all made from sine waves and noise.
Out of tune
The first cut looked great. I watched it, and the party section sounded wrong. Not broken, just off. When each phone locks in there's a little chime, five of them climbing, and they were climbing in whole steps. E, F sharp, G sharp, A sharp, C. Three of those notes aren't in the song's key. And under "Everyone's locked in" there was a held note that was actually two notes a half step apart, which was supposed to be tension and just sounded sour.
The fix was to climb the key's own notes instead, and to hold an open fifth over the silence. Two lines changed. No test I could write would have caught that. My ear did in one listen.
Apple said no, sort of
Then I asked the obvious question: can this go in the App Store? No. App Review says previews "may only use video screen captures of the app itself." A trailer that redraws the game in its own style is exactly what that rule is there to stop. Fair enough.
So we built the hybrid. Real recordings of the real app on the simulator, cut to the trailer's arc, with text over them and the app's own sounds and party music underneath. A 99% bet that lands. A 99% bet that misses, which the app greets with "Confidently incorrect, the Olympics of being wrong." I love that I didn't have to write that line for the preview, the game already had it. Then a phone joining a party nearby, "Watch the stage...", and the TV slamming TRUE.
The trailer couldn't be the preview, but it could be the frame around it.
Where the code went after all
iOS 27 added a new spot on product pages, a big header at the top that accepts a looping video, and that one is brand art, not screen captures. Same engine, new shape. Ten seconds, ultra-wide, confidence climbs to 99, TRUE lands with confetti, and it settles back to 50 so cleanly the loop has no seam. Every moving thing in it runs a whole number of cycles in those ten seconds, so the last frame flows straight back into the first.
That loop also ended up on the Hedge page. I tried the vertical trailer there first and it was a huge tall block in the middle of the page on desktop. The wide loop just sits there like a banner and plays.
The trailer itself lives where it was always meant to live, on phones, in Reels and Stories. And the whole pipeline is in the repo now, so the next one is a timeline edit and a few minutes of rendering, not a weekend in a video editor.