DOOM was originally crafted to operate on x86 personal computers, but it was later modified for several consoles with moderate achievement and subsequently broadened to a variety of devices, including some less-familiar embedded systems and even PDFs. Thanks to [Wojciech Graj], it is now possible to experience this iconic game within Microsoft Word.
To initiate DOOM in Microsoft Word, users need to enable VBA macros and disregard any security notifications that may appear. It necessitates a contemporary version of Word functioning on a Windows platform with an x64 CPU. The *.DOCM document is fairly substantial, at 6.6 MB, which is understandable since it encompasses a complete first-person shooter game. The document itself incorporates a library named doomgeneric_docm.dll along with the doom1.wad data file. Upon opening the file, a macro retrieves all essential game data and starts the game.
If you assume that Microsoft Word is incapable of displaying animated game graphics, you would be right. Rather, this DLL generates a bitmap representation of the game situation for each frame, which is subsequently illustrated in Word. It utilizes the GetAsyncKeyState function to register inputs from the arrow keys, number keys, along with the CTRL and space keys, allowing gamers to maneuver. While this may appear intricate, it actually operates quite fluidly despite the involved complexities.
Although this configuration certainly functions, it is recommended to avoid executing arbitrary code in your word processing software. Such actions are not appropriate, akin to resting your elbows on the dinner table! Additionally, it poses potential security threats, so it’s preferable to steer clear of this method.
Image Source: IB Photography / Shutterstock
Â
