the story

a doom review showed up in my youtube feed one sunday. while i was watching it, i remembered the project that got doom running in typescript’s type checker. i looked it up and started wondering if i could make a database play doom too. my hyperactive brain does this all the time. it’s exhausting.

why not postgres? right? i love postgres. i wanted to see how far i could get on a tiny instance. planetscale had the fastest postgres i knew of, so i picked their cheapest plan, the $5 one.

the plan was simple. i’d press a key and postgres would figure out what happened in the game, draw the next frame, and send it back.