DOOM was initially designed to run on x86 PCs, but it was subsequently adapted to various consoles with moderate success and later expanded to a wide array of devices, including some lesser-known embedded systems and even PDFs. Thanks to [Wojciech Graj], it is now feasible to play this classic game within Microsoft Word.
To launch DOOM in Microsoft Word, users must enable VBA macros and ignore any security alerts that may arise. It requires a modern version of Word operating on a Windows system with an x64 processor. The *.DOCM file is relatively large, at 6.6 MB, which makes sense as it contains an entire first-person shooter game. The file itself includes a library called doomgeneric_docm.dll along with the doom1.wad data file. Once the file is opened, a macro extracts all necessary game data and initiates the game.
If you think that Microsoft Word lacks the capability to display dynamic game visuals, you would be correct. Instead, this DLL creates a bitmap image of the game state for each frame, which is then rendered in Word. It employs the GetAsyncKeyState function to capture inputs from the arrow keys, number keys, as well as the CTRL and space keys, allowing players to navigate. While this might seem intricate, it actually runs quite smoothly despite the complexities involved.
While this setup certainly works, it is advisable to refrain from running random code in your word processing application. Such practices are not proper, much like resting your elbows on the dinner table! Moreover, it carries potential security risks, so it’s best to avoid this approach.
Image Source: IB Photography / Shutterstock
