News for hackers. Stuff that matters.
Re:TypeScript types can run DOOM [video] by pcthrowaway on Wednesday February 26, 2025 @12:35PM (#43185945)
If I had to guess, it's a file with an array of keys pressed (or unpressed) at some time interval (say 0.1 seconds). Then a VS code extension can append to the array every 0.1 second along with any key-press states at that time. The compiler updates the game state whenever this array gets updated.

However, I'm guessing this is why we see a demo of pong and not doom. Doom probably just can't keep up with this.

No idea if I'm remotely on the right track here though.

Re:TypeScript types can run DOOM [video] by jschoe on Wednesday February 26, 2025 @01:02PM (#43186236)
If I heard him correctly he stated that it takes A LOT to just render a single frame. It's not playable. It can run DOOM, but you can't actually play it.
Re:TypeScript types can run DOOM [video] by abound on Wednesday February 26, 2025 @01:31PM (#43186556)
"A lot" is an understatement, rendering the screen at ~320p took 12 days.