DOOM has become a legend that can be played on each screen. This cult game played on many different platforms from pregnancy tests to LEGO blocks is now moved to PDF files. GitHub user Ading2210 has enabled DOOM to play in Chromium-based browsers in the PDF environment.
How does DOOM Work on
PDF?
Home Did you know that PDF files support JavaScript? Ading2210 managed to convert DOOM’s source code to asm.js format using an old Emscripten version. This code can work smoothly even in the limited JavaScript environment of modern PDF engines. The developer benefited from a source code called “doomgeneric” to create a simple version of DOOM and created a square buffer (framebuffer) with just input/out operations.
The image of
DOOM in PDF is created with a highly creative solution. A 6-color screen created with ASCII characters by assigning a text space to each pixel queue. It is noted that the square speed is updated at 80ms. In this way, the game can be played fluently even in a PDF.
Home This project proves once again that DOOM’s really unlimited platforms can play. This interesting journey, from pregnancy tests to Memo Book, which now extends to PDF files, leads developers to their creativity. Ading2210’s work is Open access to DoomPDF