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

The Pebble smartwatch first launched in 2012 through a Kickstarter campaign, where it met with moderate success before being acquired by Fitbit. Despite a...

Tweaks

Modern remote control (RC) radios offer remarkable ranges, yet they are essentially built for line-of-sight use. But what happens when you want to control...

Tweaks

Manufacturing in space poses considerable challenges, despite many of the techniques resembling those utilized on Earth. Methods such as riveting, bolting, and welding are...

Tweaks

On my workbench sits a Mitutoyo vernier caliper, an entry-level model showcasing a classic vernier scale, built with exceptional care. It’s gratifying to observe...