Connect with us

Hi, what are you looking for?

Tweaks

You Can Now Play DOOM Within Microsoft Word

Image Source: IB Photography / Shutterstock

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

 

Advertisement. Scroll to continue reading.
AIAD

You May Also Like

Tweaks

Uranium is abundantly found in the Earth’s crust, with oceans containing approximately 4.5 billion tons — more than a thousand times what is currently...

Tweaks

While USB-C is generally well-regarded, a notable issue arises when assessing the ports on computers: there’s no standardized method to identify their functionalities. Some...

Tweaks

Every operating system encounters moments when an unexpected issue disrupts its availability. Whether caused by a faulty driver, a rare bug, or just plain...

Tweaks

For many, stepping into a flour or sawmill and observing dust motes dancing in the air may not seem alarming. However, those familiar with...