端游源码
点击放大

---
![]()
---
Feel free to join our Discord 服务端 to talk about de the 游戏, or for help getting it to run.
![Discord]()
OpenLoco is an open-源码 re-implementation of *Chris Sawyer's Locomotion* (CSL), the spiritual successor to Transport Tycoon. OpenLoco aims to improve the 游戏 similar to how OpenTTD improved *Transport Tycoon*, and OpenRCT2 improved *RollerCoaster Tycoon*.
CSL was originally written in x86 assembly, building on top of the RollerCoaster Tycoon 2 引擎. However, the 引擎 has changed substantially enough that OpenLoco currently does not share its codebase with OpenRCT2.
As of December 2025, we ha reimplementing the 游戏 in C++. It is now our goal to get a solid multiplayer experience working in OpenLoco. It is also our goal to increase the map and limits. However, until creating a new sa (NSF), we are bound to the limits imposed by the CSL sa (SV5/SC5).
---
The latest releases can be downloaded from GitHub. Releases are currently provided for Windows, Linux and MacOS.
For BSD distributions, we currently do not provide any builds. Please refer to the next section to compile the 游戏 manually. For macOS the builds are unsigned and unnotarized. This means that Gatekeeper may block them.
Please note that OpenLoco requires the asset files of the original Chris Sawyer's Locomotion to play the 游戏.
It can be bought at e.g. Steam or GOG.com.
---
We warmly welcome any contributions to the project, e.g. for C++ 代码 (游戏 implementation, bug fixes, features) or localisation (new translations).
Please have a look at our issues for newcomers.
For 代码 contributions, please stick to our 代码 style.
You can use clang-format to apply these guidelines automatically.
---
If you would like to contribute 代码 to OpenLoco, please follow the instructions below to get started compiling the 游戏.
If you just want to play the 游戏, you can just download the latest release from GitHub.
Releases are provided for Windows (64 & 32-bit) / Linux (64-bit only) / MacOS (arm64 only).
The following libraries/dependencies are used:
---
1. Check out the repository. This can be done using GitHub Desktop or other tools.
2. With VS 2022 use the "Open a local folder" option to start the project file generation. This may take some time as it downloads dependencies.
3. After successful generation of the project files open "build/windows/openloco.sln".
4. Select a config Debug or Release and run Build -> Build Solution.
4. Run the 游戏 from "build/windows/<config>/OpenLoco.exe" or within VS.
Alternatively using CMake use the following commands.
1. Run cmake --preset windows
2. Run cmake --build --preset windows-release
The standard CMake build procedure is to install the required libraries, then:
Note: If building x86-32 installing some packages can be problematic. To work around this, you can use our Docker images for compilation.
Note: Due to issues with distro yaml-cpp packages, its 源码 release is downloaded during CMake generation.
The standard CMake build procedure is to install the required libraries, then:
Note: Only arm64 builds have been tested.
---
---
开发语言:C++
项目类型:Locomotion 开源复刻
Star 数:1927
这是一套Locomotion 开源复刻,代码结构清晰,适合开发者学习游戏的客户端渲染、服务端逻辑、场景管理与资源加载。项目涵盖了游戏的核心玩法、界面交互、地图与角色系统等模块,对理解游戏开发的完整流程具有较高的参考价值。
从技术实现角度看,游戏项目的难点在于:游戏循环与状态管理、资源加载与渲染优化、客户端与服务端的协议同步、以及多平台适配。本项目在这些方面提供了可运行的实现,开发者可以在此基础上进行二次开发或学习研究。
1. 下载源码压缩包,解压到本地开发环境。
2. 根据项目类型准备对应的运行环境(Node.js / Go / C# / Unity / Godot 等)。
3. 按照 README 中的步骤配置依赖、数据库和配置文件。
4. 先启动服务端,再运行客户端,即可进入游戏进行测试。
注意:本项目仅供学习研究使用,请勿用于商业或非法用途。
对于想进入游戏开发领域的开发者来说,这套源码是一个很好的入门参考。通过阅读代码,可以学习到游戏的核心玩法实现、场景与资源管理、网络协议设计、以及渲染优化等关键技术点。
同时,项目中的代码组织方式和模块划分,也展示了游戏项目在工程化方面的实践经验,值得开发者深入研究和借鉴。理解一个完整游戏项目的架构,对后续开发其他类型游戏也很有帮助。
本资源来源于开源社区,仅供学习研究和技术交流使用,请勿用于任何商业或违法违规用途。使用本项目产生的一切后果由使用者自行承担。若涉及第三方权益,请联系删除。
| 资源标题 | 开源洛科 - 运动 开源复刻 |
| 所属分类 | 端游源码 |
| 发布作者 | admin |
| 发布时间 | 2026-10-05 21:10:45 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 551 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |