In separate projects, two programmers managed to run the shooter classic “Doom” as a PDF. Programmers ading2210 and Thomas Reinsma have ported “Doom” to PDF format in independent projects and published it over the past few days. Projects can be run in Chromium-based browsers and run in a rudimentary manner.
Advertisement
The idea of translating Tetris into PDF format first came to Thomas Reinsma. ading2210 was inspired by this – without knowing it Rinsma was working on the “Doom” port in parallel.That’s why there’s no bad blood: “Nice job!” Risnama writes on Hacker News about PDF “Doom” by ading2210Reinsma believes his solution is better overall.
80 milliseconds for one image
The fact that a PDF file can be played at all is due to its support of JavaScript, running ading2210 on GithubIn theory, a lot is possible with it, but the APIs of modern browsers are very limited, which also compromises on “Doom” gaming entertainment. On the one hand, the frame rate is low – each image lasts 80 milliseconds, so the PDF version of “Doom” displays only 12.5 images in a full second. Even the manufacturer admits the fluid varies.
read this also
Furthermore, the browser version of “Doom” shows no red blood; The display is limited to six different shades of grey. This should be roughly enough to be able to recognize screen content to some extent. Images are displayed on the screen via text fields for each line, whose contents are filled with various ASCII characters. ading2210 writes, with the “doom” resolution of 320×200 pixels it was not practical to turn an individual text field on and off per pixel. In this case, thousands of text fields would have to be activated for each frame.
PDF-based version of “Doom” The ading2210 can be played using either the integrated input buttons or the keyboard.
(There)