# 有可用源代码的商业电子游戏列表

有可用源代码的商业电子游戏，是指经过商业开发和销售、而其源代码——即生成游戏的可读程序——后来向公众或游戏社区开放的游戏。

| 关键事实 | 详情 |
|---|---|
| 最早里程碑式发布 | id Software于1997年12月23日发布《毁灭战士》源代码，距该游戏商业发售约四年，并于1999年10月3日以GPL重新授权<sup>[1](https://doom.fandom.com/wiki/Licences)</sup><sup> • </sup><sup>[2](https://disciplinas.uvv.br/assets/games/gebbdoom.pdf)</sup> |
| id Software的纪录 | 从1993年到2012年，id Software发布了其制作的每一款游戏的代码<sup>[2](https://disciplinas.uvv.br/assets/games/gebbdoom.pdf)</sup> |
| 常见许可证 | GPL变体主导官方发布（《毁灭战士》《雷神之锤》《基恩梦》）；部分发布使用不符合开源促进会定义的非商业许可证<sup>[1](https://doom.fandom.com/wiki/Licences)</sup><sup> • </sup><sup>[3](https://www.pcgamer.com/games/survival-crafting/blocky-zombie-survival-sim-unturned-releases-its-source-code-so-players-can-build-a-lasting-legacy-for-the-game-regardless-of-the-changes-we-make/)</sup> |
| 保存动机 | 开发者发布代码，明确是为了防止作品失传；史克威尔艾尼克斯丢失了《最终幻想战略版》的原始源代码，从粉丝存档中重建了替代版本<sup>[4](https://www.pcgamer.com/games/final-fantasy/final-fantasy-tactics-remaster-devs-built-a-replacement-for-its-lost-source-code-from-fansite-downloads-director-says-i-do-want-to-thank-all-of-the-fans-for-all-of-their-help-in-keeping-that-information-archived/)</sup> |

## 源代码如何变得可用

**官方发布。** 开发者和权利持有人将代码推送到公共仓库、交给选定的社区成员、随游戏一同出售，或在众筹活动后公布。Blendo Games以相同方式共享条款发布了其2025年潜行游戏的代码：代码可免费用于个人或商业用途，但附带条件是任何修改都必须公开发布。<sup>[5](https://www.pcgamer.com/games/fps/the-best-stealth-game-of-the-year-just-released-its-source-code/)</sup>

**泄露。** 部分代码通过合法性不明的泄露途径变得可用。

**重建。** 在原始代码无存的情况下，社区反汇编已发售的二进制文件并重建可编译的源代码。“商业游戏源代码”GitHub组织在代码通过逆向工程获得时标注“（重建）”，在新引擎替代原引擎时标注“（重新实现）”，在游戏玩法或外观经过重大改动后重制时标注“（重制）”。<sup>[6](https://github.com/commercial-game-sources)</sup> 例子包括《暗黑破坏神》（1996）的Devilution、《沙丘II》（1992）的OpenDUNE，以及《古墓丽影I、II、III》的开源重新实现TRX。<sup>[6](https://github.com/commercial-game-sources)</sup> 2019年粉丝对《[超级马力欧64](https://www.edgepedia.org/zh/super-mario-64)》的反编译产生了可重建匹配ROM的C源代码，使移植到微软Zune HD媒体播放器等无关硬件成为可能。<sup>[7](https://www.tomshardware.com/video-games/retro-gaming/programmer-ports-super-mario-64-to-microsofts-zune-hd-media-player-the-2009-ipod-rival-runs-the-game-natively-on-its-nvidia-tegra-chip-with-touchscreen-controls-and-saves)</sup>

## 许可

源代码和游戏资产通常以不同的许可证发布。美术、音乐和数据往往带有与代码不同或更严格的许可证，因为这些资产的版权状况不同或更为复杂。id Software早期的发布使用非商业许可证，后来以GPL重新授权；《毁灭战士》的代码于1997年底以非商业许可证发布，并于1999年10月3日以GPL重新授权。<sup>[1](https://doom.fandom.com/wiki/Licences)</sup><sup> • </sup><sup>[8](https://carmack-archive.com/en/tech)</sup> 部分发布明确不是开源的：Smartly Dressed Games以非商业用途发布了《未转变者》的代码，并指出该许可证不符合[开源促进会](https://www.edgepedia.org/zh/open-source-initiative)对该术语的定义。<sup>[3](https://www.pcgamer.com/games/survival-crafting/blocky-zombie-survival-sim-unturned-releases-its-source-code-so-players-can-build-a-lasting-legacy-for-the-game-regardless-of-the-changes-we-make/)</sup> 源代码的商业卖家可以施加自己的条款；例如Introversion 2017年的源代码许可证禁止未经书面许可发布独立二进制文件。<sup>[9](https://www.introversion.co.uk/introversion/legal/SourceCodeEULA.pdf)</sup>

## 著名发布及其影响

**id Software。** id确立了在游戏的商业发行期结束数年后发布引擎代码的做法：《毁灭战士》（1997年12月23日）、《雷神之锤》（1999年，以GPL发布）、《雷神之锤II》、《雷神之锤III竞技场》和《[毁灭战士3](https://www.edgepedia.org/zh/doom-3)》都获得了公开源代码发布，总共约二十个仓库，包括《[重返德军总部](https://www.edgepedia.org/zh/return-to-castle-wolfenstein)》、GtkRadiant编辑器和《雷神之锤》开发工具。<sup>[2](https://disciplinas.uvv.br/assets/games/gebbdoom.pdf)</sup><sup> • </sup><sup>[8](https://carmack-archive.com/en/tech)</sup><sup> • </sup><sup>[10](https://openaccess.city.ac.uk/id/eprint/30800/1/Richardson%20thesis%202006%20PDF-A.pdf)</sup> 《毁灭战士》的发布成为数百个粉丝制作的移植版的基础，如GZDoom、Chocolate Doom和Crispy Doom。<sup>[11](https://trepo.tuni.fi/bitstream/10024/160643/2/MakelaVaino.pdf)</sup> 《雷神之锤》的GPL发布催生了衍生引擎版本，这些版本在原游戏之外也取得了成功。<sup>[10](https://openaccess.city.ac.uk/id/eprint/30800/1/Richardson%20thesis%202006%20PDF-A.pdf)</sup>

**其他发行商。** “商业游戏源代码”目录跨越四十年，从《Rogue》（1983）和《Digger》（1983）到《潜行者：普里皮亚季的召唤》（2009，X-Ray引擎1.6）以及[Frictional Games](https://www.edgepedia.org/zh/frictional-games)的《半影：序曲》和《失忆症》系列。<sup>[6](https://github.com/commercial-game-sources)</sup> 大多数条目用C、C++或汇编语言编写，反映了各自时代的平台。<sup>[6](https://github.com/commercial-game-sources)</sup>

## 保存与重建

源代码的可用性对保存至关重要，因为商业游戏经常失传：[史克威尔艾尼克斯](https://www.edgepedia.org/zh/square-enix)丢失了《[最终幻想战略版](https://www.edgepedia.org/zh/final-fantasy-tactics)》的原始源代码，伊瓦利斯编年史复刻版团队从粉丝网站下载的资料中拼凑出替代版本，总监前广和丰感谢粉丝档案管理员保存了这些信息。<sup>[4](https://www.pcgamer.com/games/final-fantasy/final-fantasy-tactics-remaster-devs-built-a-replacement-for-its-lost-source-code-from-fansite-downloads-director-says-i-do-want-to-thank-all-of-the-fans-for-all-of-their-help-in-keeping-that-information-archived/)</sup> EA似乎丢失了《[命令与征服：红色警戒2](https://www.edgepedia.org/zh/command-and-conquer-red-alert-2)》的源代码，这成为移植工作的障碍。<sup>[12](https://www.pcgamer.com/software/ai/googles-ai-studio-lead-has-vibe-coded-a-port-of-command-and-conquer-for-ios/)</sup> 美国国会图书馆将未编译的源代码视为软件和电子游戏的推荐保存格式。<sup>[13](https://www.loc.gov/preservation/resources/rfs/software-videogames.html)</sup>

重建也变得更加自动化。一位开发者使用AI代理和超过5000亿个词元重建了《[使命召唤：现代战争2](https://www.edgepedia.org/zh/call-of-duty-modern-warfare-2)》（2009）的源代码；游戏中99%的函数现已重建，用脚本将每个重建函数与游戏可执行文件进行比较，结果显示83%的函数与原版逐字节一致。<sup>[14](https://www.tomshardware.com/tech-industry/artificial-intelligence/dev-used-ai-agents-and-more-than-500-billion-tokens-to-rebuild-call-of-duty-modern-warfare-2s-source-code-83-percent-of-the-2009-shooters-functions-now-match-the-original-byte-for-byte)</sup> 基于反编译的移植版，如《[塞尔达传说：织梦岛](https://www.edgepedia.org/zh/the-legend-of-zelda-links-awakening)》Switch重制版的PC移植版，因使用AI生成代码而受到关注。<sup>[15](https://www.gamesradar.com/games/the-legend-of-zelda/the-legend-of-zelda-links-awakenings-nintendo-switch-remake-now-has-a-pc-port-if-you-can-stomach-an-almost-exclusive-use-of-ai/)</sup>

## 法律与商业背景

发布代码并不总是使游戏成为自由软件，权利持有人会仔细权衡条款。发行商也面临相反的风险：Motorsport Games的2024年年报指出，如果专有软件的某些部分被认定受开源许可证约束，公司可能被要求公开发布其源代码的受影响部分。<sup>[16](https://www.sec.gov/Archives/edgar/data/1821175/000149315225011144/formarsnew.pdf)</sup> 围绕可用代码的粉丝活动处于争议地带：任天堂的法律代表针对托管《超级马力欧64》PC移植版编译文件的网站采取了行动，尽管反编译本身是社区制作的；而Xbox的新Labs计划由CEO阿莎·夏尔马宣布、Xbox CTO斯科特·范·弗利特领导，旨在支持模组制作者并赋予老游戏新生命，同时发行商仍控制其游戏的分发方式。<sup>[7](https://www.tomshardware.com/video-games/retro-gaming/programmer-ports-super-mario-64-to-microsofts-zune-hd-media-player-the-2009-ipod-rival-runs-the-game-natively-on-its-nvidia-tegra-chip-with-touchscreen-controls-and-saves)</sup><sup> • </sup><sup>[17](https://www.creativebloq.com/news/xbox-labs-will-port-games-to-mac-run-them-in-the-browser-and-back-modders)</sup>

## References

1. [Licences, Doom Wiki](https://doom.fandom.com/wiki/Licences)
2. [Illustrating the DOOM game (GEB Doom chapter)](https://disciplinas.uvv.br/assets/games/gebbdoom.pdf)
3. [Unturned releases its source code, PC Gamer](https://www.pcgamer.com/games/survival-crafting/blocky-zombie-survival-sim-unturned-releases-its-source-code-so-players-can-build-a-lasting-legacy-for-the-game-regardless-of-the-changes-we-make/)
4. [Final Fantasy Tactics remaster devs built a replacement for its lost source code, PC Gamer](https://www.pcgamer.com/games/final-fantasy/final-fantasy-tactics-remaster-devs-built-a-replacement-for-its-lost-source-code-from-fansite-downloads-director-says-i-do-want-to-thank-all-of-the-fans-for-all-of-their-help-in-keeping-that-information-archived/)
5. [The best stealth game of the year just released its source code, PC Gamer](https://www.pcgamer.com/games/fps/the-best-stealth-game-of-the-year-just-released-its-source-code/)
6. [Commercial Game Sources, GitHub](https://github.com/commercial-game-sources)
7. [Programmer ports Super Mario 64 to Microsoft's Zune HD, Tom's Hardware](https://www.tomshardware.com/video-games/retro-gaming/programmer-ports-super-mario-64-to-microsofts-zune-hd-media-player-the-2009-ipod-rival-runs-the-game-natively-on-its-nvidia-tegra-chip-with-touchscreen-controls-and-saves)
8. [John Carmack's Technical Innovations, Archive](https://carmack-archive.com/en/tech)
9. [Source Code Licence, Introversion Software (PDF)](https://www.introversion.co.uk/introversion/legal/SourceCodeEULA.pdf)
10. [City Research Online: Richardson thesis (2006) on Quake engine derivatives](https://openaccess.city.ac.uk/id/eprint/30800/1/Richardson%20thesis%202006%20PDF-A.pdf)
11. [Doom's technical legacy, Tampere University repository](https://trepo.tuni.fi/bitstream/10024/160643/2/MakelaVaino.pdf)
12. [Google's AI Studio lead has vibe coded a port of Command & Conquer for iOS, PC Gamer](https://www.pcgamer.com/software/ai/googles-ai-studio-lead-has-vibe-coded-a-port-of-command-and-conquer-for-ios/)
13. [Recommended Formats Statement: Software and Video Games, Library of Congress](https://www.loc.gov/preservation/resources/rfs/software-videogames.html)
14. [Dev used AI agents and more than 500 billion tokens to rebuild Modern Warfare 2's source code, Tom's Hardware](https://www.tomshardware.com/tech-industry/artificial-intelligence/dev-used-ai-agents-and-more-than-500-billion-tokens-to-rebuild-call-of-duty-modern-warfare-2s-source-code-83-percent-of-the-2009-shooters-functions-now-match-the-original-byte-for-byte)
15. [Link's Awakening Switch remake PC port, GamesRadar](https://www.gamesradar.com/games/the-legend-of-zelda/the-legend-of-zelda-links-awakenings-nintendo-switch-remake-now-has-a-pc-port-if-you-can-stomach-an-almost-exclusive-use-of-ai/)
16. [Motorsport Games Inc. Form 10-K (December 31, 2024), SEC EDGAR](https://www.sec.gov/Archives/edgar/data/1821175/000149315225011144/formarsnew.pdf)
17. [Xbox Labs will port games to Mac, run them in the browser and back modders, Creative Bloq](https://www.creativebloq.com/news/xbox-labs-will-port-games-to-mac-run-them-in-the-browser-and-back-modders)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 21, 2026 · Edited: Oct 15, 2026; Oct 21, 2026; Oct 25, 2026 · Last review: Oct 21, 2026*

Topic: 体育、游戏与休闲 › 电子游戏与数字游戏 › 游戏产业 › 开发与技术

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/list-of-commercial-video-games-with-available-source-code

English original: https://www.edgepedia.org/list-of-commercial-video-games-with-available-source-code
