{"id":13719256,"url":"https://github.com/cloudflare/doom-wasm","last_synced_at":"2025-04-09T06:11:16.996Z","repository":{"id":42510405,"uuid":"366861270","full_name":"cloudflare/doom-wasm","owner":"cloudflare","description":"Chocolate Doom WebAssembly port with WebSockets support","archived":false,"fork":false,"pushed_at":"2024-09-27T17:07:51.000Z","size":628,"stargazers_count":334,"open_issues_count":7,"forks_count":64,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-02T04:07:04.680Z","etag":null,"topics":["doom","wasm","webassembly","websockets"],"latest_commit_sha":null,"homepage":"https://silentspacemarine.com","language":"C","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/cloudflare.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-12T21:43:54.000Z","updated_at":"2025-03-31T20:36:41.000Z","dependencies_parsed_at":"2024-01-05T23:57:00.117Z","dependency_job_id":"6ac64cef-c6d7-4557-a0b8-d433b4ed7108","html_url":"https://github.com/cloudflare/doom-wasm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflare%2Fdoom-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflare%2Fdoom-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflare%2Fdoom-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflare%2Fdoom-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudflare","download_url":"https://codeload.github.com/cloudflare/doom-wasm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987285,"owners_count":21028895,"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","wasm","webassembly","websockets"],"created_at":"2024-08-03T01:00:45.234Z","updated_at":"2025-04-09T06:11:16.971Z","avatar_url":"https://github.com/cloudflare.png","language":"C","funding_links":[],"categories":["C","Demos \u0026 Experiments"],"sub_categories":["Games \u0026 Fun"],"readme":"# Wasm Doom\n\nThis is a [Chocolate Doom][1] WebAssembly port with WebSockets [support][4].\n\n## Requirements\n\nYou need to install Emscripten and a few other tools first:\n\n```\nbrew install emscripten\nbrew install automake\nbrew install sdl2 sdl2_mixer sdl2_net\n```\n\n## Compiling\n\nThere are two scripts to facilitate compiling Wasm Doom:\n\n```\n./scripts/clean.sh\n./scripts/build.sh\n```\n\n## Running\n\nCopy the shareware version of [doom1.wad][3] to [./src][9] (make sure it has the name doom1.wad)\n\nThen:\n\n```\ncd src\npython -m SimpleHTTPServer\n```\n\nThen open your browser and point it to http://0.0.0.0:8000/\n\nDoom should start (local mode, no network). Check [doom-workers][8] if you want to run multiplayer locally.\n\nInspect [src/index.html][6] for startup details.\n\nCheck our live multiplayer [demo][5] and [blog post][7].\n\n## stdout procotol\n\nTo show important messages coming from the game while it's running we send the following formatted stdout messages, which can be parsed in the web page running the wasm:\n\n```\ndoom: 1, failed to connect to websockets server\ndoom: 2, connected to %s\ndoom: 3, we're out of client addresses\ndoom: 4, ws error(eventType=%d, userData=%d)\ndoom: 5, ws close(eventType=%d, wasClean=%d, code=%d, reason=%s, userData=%d)\ndoom: 6, failed to send ws packet, reconnecting\ndoom: 7, failed to connect to %s\ndoom: 8, uid is %d\ndoom: 9, disconnected from server\ndoom: 10, game started\ndoom: 11, entering fullscreen\ndoom: 12, client '%s' timed out and disconnected\n```\n\n## License\n\nChocolate Doom and this port are distributed under the GNU GPL. See the COPYING file for more information.\n\n[1]: https://github.com/chocolate-doom/chocolate-doom\n[2]: https://emscripten.org/\n[3]: https://doomwiki.org/wiki/DOOM1.WAD\n[4]: src/net_websockets.c\n[5]: https://silentspacemarine.com\n[6]: src/index.html\n[7]: https://blog.cloudflare.com/doom-multiplayer-workers\n[8]: https://github.com/cloudflare/doom-workers\n[9]: src\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudflare%2Fdoom-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudflare%2Fdoom-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudflare%2Fdoom-wasm/lists"}