{"id":28417421,"url":"https://github.com/wojciech-graj/doom-docm","last_synced_at":"2025-06-26T03:32:52.431Z","repository":{"id":273019605,"uuid":"918481076","full_name":"wojciech-graj/doom-docm","owner":"wojciech-graj","description":"DooM in Microsoft Word","archived":false,"fork":false,"pushed_at":"2025-01-25T13:06:38.000Z","size":6199,"stargazers_count":281,"open_issues_count":1,"forks_count":13,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-04T10:55:45.245Z","etag":null,"topics":["doom","microsoft","microsoft-word","source-port","word"],"latest_commit_sha":null,"homepage":"","language":"VBA","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wojciech-graj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-18T03:29:28.000Z","updated_at":"2025-04-30T20:00:57.000Z","dependencies_parsed_at":"2025-01-18T04:34:01.453Z","dependency_job_id":"17fdf943-3594-4577-a28e-f5b833de3222","html_url":"https://github.com/wojciech-graj/doom-docm","commit_stats":null,"previous_names":["wojciech-graj/doom-docm"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wojciech-graj/doom-docm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wojciech-graj%2Fdoom-docm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wojciech-graj%2Fdoom-docm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wojciech-graj%2Fdoom-docm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wojciech-graj%2Fdoom-docm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wojciech-graj","download_url":"https://codeload.github.com/wojciech-graj/doom-docm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wojciech-graj%2Fdoom-docm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261994531,"owners_count":23242030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["doom","microsoft","microsoft-word","source-port","word"],"created_at":"2025-06-04T05:16:29.409Z","updated_at":"2025-06-26T03:32:52.416Z","avatar_url":"https://github.com/wojciech-graj.png","language":"VBA","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DooM-docm\n\n![LOGO](screenshots/0.png)\n\n**DOOM in Microsoft Word!**\n\nSource-port of [doomgeneric](https://github.com/ozkl/doomgeneric). Does not have sound.\n\nRequires Windows with an x64 CPU architecture and the latest version of Microsoft Word.\n\nSee a video of it [here](https://youtu.be/G3XoOCMnSNg)!\n\n## Usage\n\n1. Download `doom.docm` from the latest [github release](https://github.com/wojciech-graj/doom-docm/releases)\n2. Right click on the file, select **Properties**\n3. Select the **General** tab\n4. Select **Unblock**\n5. Open the file in Microsoft Word\n6. Select **Enable Content** in the security warning bar\n\nAdditionally, expect to have to fight Windows Defender, as Microsoft is (rightfully) not too keen on having Word documents extracting and running executables.\n\n## How it works\n\nThe Word document contains the library `doomgeneric_docm.dll` and `doom1.wad` game data encoded in base 64, which a VBA macro extracts onto the disk and then loads. Every game tick, `doomgeneric_docm.dll` creates a bmp image containing the current frame and uses `GetAsyncKeyState` to read the keyboard state. The main VBA macro's game loop runs a tick in doom, then replaces the image in the document with the latest frame.\n\n## Controls\n\n| Action        | Default Keybind |\n|---------------|-----------------|\n| UP            | ARROW UP        |\n| DOWN          | ARROW DOWN      |\n| LEFT          | ARROW LEFT      |\n| RIGHT         | ARROW RIGHT     |\n| FIRE          | CTRL            |\n| USE           | SPACE           |\n| WEAPON SELECT | 1-7             |\n\n## Build\nRequires Make and a MinGW compiler. Creates `bin/doomgeneric_docm.dll`\n```\ncd doomgeneric\nmake\n```\n\n`bin/doomgeneric_docm.dll` and `doom1.wad` can be converted into VBA macros using `util/codegen.py`, and saved as `vba/Data.vba`.\n\nThe contents of the source files in the `vba` directory have been saved as modules in the Word document.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwojciech-graj%2Fdoom-docm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwojciech-graj%2Fdoom-docm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwojciech-graj%2Fdoom-docm/lists"}