Well... it had to happen, right? After adding2210 created a port to run Doom inside a PDF, now it's the turn of wojciech-graj, who developed DooM-docm, a port of Doom that works in Microsoft Word. While it lacks sound and has some visual glitches, it actually has an acceptable framerate, and the controls aren't a nightmare...
I think nobody on the original development team would have imagined that Doom would end up being adapted to so many platforms. The result is a very popular technical challenge, an unprecedented Hello World, and multiple projects that continue to modify, adapt, and optimize much of its code. Obviously, .WAD files are (more or less) untouchable due to copyright issues, but everything surrounding classic Doom is truly impressive, and I don't see it stopping, at least in the short term. What's next on the list? Someone put Doom in a Word document. Yes.
DooM-docm: Doom inside Word
Considering the current state of Word and the entire Office suite, I think even Doomguy himself will need help to escape that hell, but it was the GitHub user wojciech-graj who put it there in the first place.
The technical details confirm that DooM-docm is a source port of the doomgeneric project. The Word document contains a copy of the doomgeneric_docm.dll module, and the DOOM1.WAD belonging to the shareware version of Doom. The game data is encoded in base64, which a VBA macro extracts to disk and then loads. With each 'tick', the module creates a BMP image of the current frame, and uses the GetAsyncKeyState function to read the keyboard state. The macro replaces the document's image with the latest available frame, and the process repeats.
DooM-docm requires the latest version of Microsoft Word on a Windows edition compatible with x64, but as expected, Windows Defender doesn't like the idea of loading documents that store strange dll files inside. You may need to add the document to the exceptions list before doing any testing. Link below!
Official site: Click here
How to download from GitHub: Click here