# Ren'Py

**Ren'Py** 是一款免费、开源的视觉小说制作引擎，基于 [Python](https://www.edgepedia.org/zh/python-programming-language) 编程语言构建，并由其自有的脚本语言驱动对话、分支和菜单。<sup>[1](https://www.renpy.org/doc/html/python.html)</sup><sup> • </sup><sup>[2](https://renpy.org/dl/4.8.7/reference.html)</sup> 它于 2004 年首次发布，至今已更新 185 次，其官方文档将其描述为“一种编程语言和运行时，旨在简化视觉小说类游戏的创作。”<sup>[3](https://www.renpy.org/release_list.html)</sup><sup> • </sup><sup>[2](https://renpy.org/dl/4.8.7/reference.html)</sup> 根据 GameEngineHub 的一项比较，Ren'Py 在 itch.io 和 Steam 等平台上支撑了约 60% 至 70% 的视觉小说，其中有超过 6,000 款作品是使用它制作的；而另一项比较则认为，该引擎总共贡献了超过 8,000 部已发布作品。<sup>[4](https://vnpaths.com/renpy-vs-tyranobuilder/)</sup><sup> • </sup><sup>[5](https://routevn.com/en/blog/routevn-vs-renpy/)</sup>

| 关键事实 | 详情 |
|---|---|
| 类型与费用 | 免费开源的视觉小说引擎，被誉为“二十年来该类型的标杆”<sup>[6](https://visualnoveluniverse.com/en/best-visual-novel-engines)</sup> |
| 基础 | 使用 Python 编写；脚本可直接嵌入 Python，自 8.4 版起引擎支持 Python 3.12<sup>[1](https://www.renpy.org/doc/html/python.html)</sup> |
| 脚本格式 | 游戏脚本由 `game/` 目录下的 `.rpy` 文件组成，作者可自行决定如何跨文件拆分<sup>[7](https://nightly.renpy.org/doc/language_basics.html)</sup> |
| 发布历史 | 自 2004 年首次发布以来已有 185 次更新；当前版本 8.5.3，代号“我们能去月球”，2026 年 5 月 15 日发布<sup>[3](https://www.renpy.org/release_list.html)</sup> |
| 市场地位 | 据估计占 itch.io 和 Steam 上视觉小说项目的 60%–70%；Steam 上有超过 6,000 款使用它构建的作品<sup>[4](https://vnpaths.com/renpy-vs-tyranobuilder/)</sup> |
| 导出目标 | 桌面、移动端和网页；专用打包工具可从启动器构建 Android APK<sup>[8](https://www.itechguides.com/products/ren-py/alternatives/)</sup><sup> • </sup><sup>[9](https://renpy.org/doc/html/android.html)</sup> |
| 知名作品 | 《心跳文学部！》、《杀死公主》和《我们的人生：起点与永恒》<sup>[10](https://www.theseus.fi/bitstream/10024/907685/2/Erjanne_Emma.pdf)</sup> |

## 脚本语言与 Python 集成

一个 Ren'Py 游戏的脚本由 `game/` 目录下所有以 `.rpy` 结尾的文件组成。文件之间通过跳转到或调用一个标签来转移控制权，因此作者可以将脚本按事件或天数拆分为多个文件，也可以保留一个大文件；引擎将这些划分视为个人风格问题。<sup>[7](https://nightly.renpy.org/doc/language_basics.html)</sup>

**底层是 Python。** Ren'Py 使用 Python 编写，并允许脚本直接调用 Python，从设置一个标志到创建新的可显示对象。`python:` 块在控制流到达时执行一段 Python 代码，而以 `$` 开头的一行形式则在默认存储空间——即引擎的全局变量空间——中执行单条 Python 语句。<sup>[1](https://www.renpy.org/doc/html/python.html)</sup> 文档提醒说，并非 Python 的所有内容都能照搬：未随 Ren'Py 一起打包的包可能无法在其中运行，而某些结构如文件、套接字、迭代器和生成器可能会干扰存档和回滚。<sup>[1](https://www.renpy.org/doc/html/python.html)</sup> 每条 Ren'Py 语句也都有对应的 Python 等价形式，允许游戏完全用 Python 编写脚本，不过某些功能，例如跳过已看过的对话，仅在原生 say 语句下有效。<sup>[11](https://renpy.org/doc/html/statement_equivalents.html)</sup>

**专用子语言。** 除核心脚本外，Ren'Py 还包含动画与变换语言（ATL），这是一种高级语言，用于创建动画、在屏幕上移动可显示对象、设置位置，以及应用随时间或响应事件而变化的变换。<sup>[12](https://renpy.org/doc/html/transforms.html)</sup> [用户界面](https://www.edgepedia.org/zh/user-interface)使用屏幕语言构建：屏幕显示对话、进度条和图像等信息，并让玩家通过按钮和动作进行交互，以进行保存、加载和偏好设置。屏幕可以由脚本语句隐式显示、自动显示、作为动作显示或显式显示，并且可以同时显示多个屏幕。<sup>[13](https://www.renpy.org/doc/html/screens.html?highlight=transclude)</sup> 作者还可以注册创作者定义的屏幕语言语句和创作者定义语句，从而扩展语言本身。<sup>[14](https://www.renpy.org/doc/html/screen_python.html?highlight=python)</sup><sup> • </sup><sup>[15](https://www.renpy.org/doc/html/cds.html)</sup>

## 历史与发布

引擎的发布列表记录了自 2004 年以来的 185 个正式发布版本，每个版本都有一个代号。近期版本分为两个系列：Ren'Py 7.x 和 Ren'Py 8.x，并行发布，例如 8.3.7“右边的第二颗星”和 7.8.7“一直向前直到清晨”，均发布于 2025 年 3 月 17 日。<sup>[3](https://www.renpy.org/release_list.html)</sup> 8.5 系列代号“身体健康”，始于 2025 年 11 月 16 日的 8.5.0，当前的 8.5.3 修复版于 2026 年 5 月 15 日发布。<sup>[3](https://www.renpy.org/release_list.html)</sup><sup> • </sup><sup>[16](https://www.renpy.org/latest.html)</sup> 引擎最初几年的早期参考手册已经阐明了其目标：像可执行脚本一样工作，使得制作一个可运行的游戏所需的工作量仅比将游戏脚本输入电脑多一点。<sup>[2](https://renpy.org/dl/4.8.7/reference.html)</sup>

## 平台与部署

Ren'Py 面向桌面、移动端和网页。<sup>[8](https://www.itechguides.com/products/ren-py/alternatives/)</sup> 对于 Android，引擎采取以打包为中心的方式：开发者在 PC 上使用启动器构建 Android 包，启动器会安装 [Android SDK](https://www.edgepedia.org/zh/android-sdk)、生成密钥并配置构建，之后该包可上传至 [Google Play](https://www.edgepedia.org/zh/google-play) 和其他应用商店。<sup>[9](https://renpy.org/doc/html/android.html)</sup> 2023 年的一项测试发现，得益于专用的 ARM Linux 构建，Ren'Py 在[树莓派 4](https://www.edgepedia.org/zh/raspberry-pi-4) 计算机上可在 32 位和 64 位 Linux 下完整运行。<sup>[17](https://www.mclibre.org/descargar/docs/revistas/the-magpi/the-magpi-131-en-202307.pdf)</sup>

## 在视觉小说引擎中的地位

视觉小说引擎的比较一致将 Ren'Py 列为成熟、代码优先的选择。《视觉小说宇宙》指南的表格将其列为使用“自有脚本语言”构建、免费开源，并以“完全控制和成熟度”为优势，与无代码或基于块的工具形成对比，如 VNU 和 TyranoBuilder、商业化的 Visual Novel Maker、Unity 扩展 Naninovel，以及用于分支文本原型设计的 Twine。<sup>[6](https://visualnoveluniverse.com/en/best-visual-novel-engines)</sup> 各来源的权衡是一致的：Ren'Py 需要在编写第一个场景之前学习一种脚本语言，其编辑-保存-重新编译的循环给写作者增添了麻烦，而重新设计默认界面意味着编辑源文件。<sup>[18](https://mimmoengine.com/renpy-alternative)</sup> 作为交换，它提供了可视化竞品所放弃的深度；TyranoBuilder 的无代码承诺被描述为部分兑现，因为一旦项目需要超出基础功能的东西，其 TyranoScript 语言就会重新出现。<sup>[18](https://mimmoengine.com/renpy-alternative)</sup> 非视觉小说元素，如小游戏，需要用 Python 编码。<sup>[19](https://odr.chalmers.se/bitstreams/7ef843a1-c310-4b26-90ec-bbe0e5e5851b/download)</sup>

**采用情况。** 引擎的规模体现在各平台上的作品数量和玩家所熟知的游戏上。除了上文提到的 6,000 多款 Steam 作品和 8,000 多部总作品外，<sup>[4](https://vnpaths.com/renpy-vs-tyranobuilder/)</sup><sup> • </sup><sup>[5](https://routevn.com/en/blog/routevn-vs-renpy/)</sup> 其过往目录还包括商业上知名的作品，如《[心跳文学部！](https://www.edgepedia.org/zh/doki-doki-literature-club)》、《杀死公主》和《我们的人生：起点与永恒》。<sup>[10](https://www.theseus.fi/bitstream/10024/907685/2/Erjanne_Emma.pdf)</sup> 社区评估与这些数字相呼应：一位测试了六款微型视觉小说替代引擎的开发者得出结论，与所尝试的替代品相比，“我仍然相信 Ren'Py 是市面上最好的视觉小说引擎。”<sup>[20](https://itch.io/blog/1615249/a-giant-postmortem-for-6-micro-visual-novels-or-on-trying-out-new-vn-engines)</sup> 对于已经在 Unity 中工作的团队，Naninovel 提供了更强大的功能和更好的 3D 效果，代价是学习一个庞大得多的引擎，这主要只有在已经掌握 Unity 时才有回报。<sup>[18](https://mimmoengine.com/renpy-alternative)</sup>

## References

1. [Python Statements, Ren'Py Documentation](https://www.renpy.org/doc/html/python.html)
2. [The Ren'Py Reference Manual (4.8.7)](https://renpy.org/dl/4.8.7/reference.html)
3. [Ren'Py Release List](https://www.renpy.org/release_list.html)
4. [Ren'Py vs TyranoBuilder: Which Visual Novel Engine Should You Use?, VN Paths](https://vnpaths.com/renpy-vs-tyranobuilder/)
5. [RouteVN vs Ren'Py, RouteVN](https://routevn.com/en/blog/routevn-vs-renpy/)
6. [Best visual novel engines in 2026, Visual Novel Universe](https://visualnoveluniverse.com/en/best-visual-novel-engines)
7. [Language Basics, Ren'Py Documentation](https://nightly.renpy.org/doc/language_basics.html)
8. [Best Ren'Py Alternatives in 2026, iTechGuides](https://www.itechguides.com/products/ren-py/alternatives/)
9. [Android, Ren'Py Documentation](https://renpy.org/doc/html/android.html)
10. [Erjanne, Emma, thesis on Ren'Py, Theseus repository](https://www.theseus.fi/bitstream/10024/907685/2/Erjanne_Emma.pdf)
11. [Statement Equivalents, Ren'Py Documentation](https://renpy.org/doc/html/statement_equivalents.html)
12. [Transforms, Ren'Py Documentation](https://renpy.org/doc/html/transforms.html)
13. [Screens and Screen Language, Ren'Py Documentation](https://www.renpy.org/doc/html/screens.html?highlight=transclude)
14. [Screens and Python, Ren'Py Documentation](https://www.renpy.org/doc/html/screen_python.html?highlight=python)
15. [Creator-Defined Statements, Ren'Py Documentation](https://www.renpy.org/doc/html/cds.html)
16. [Ren'Py 8.5.3 announcement](https://www.renpy.org/latest.html)
17. [The MagPi issue 131 tutorial (Ren'Py on Raspberry Pi)](https://www.mclibre.org/descargar/docs/revistas/the-magpi/the-magpi-131-en-202307.pdf)
18. [A Ren'Py alternative for people who don't want to write Python, Mimmo Engine](https://mimmoengine.com/renpy-alternative)
19. [Methods and Tools, Chalmers ODR repository](https://odr.chalmers.se/bitstreams/7ef843a1-c310-4b26-90ec-bbe0e5e5851b/download)
20. [A Giant Postmortem for 6 Micro Visual Novels, itch.io](https://itch.io/blog/1615249/a-giant-postmortem-for-6-micro-visual-novels-or-on-trying-out-new-vn-engines)

---
*Initially written Oct 15, 2026 · Edited: Oct 25, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Named software products and platforms

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/renpy

English original: https://www.edgepedia.org/renpy
