游戏源码
点击放大

OpenRiichi is an open 源码 Japanese 麻将
客户端 written in the Vala programming language.
The 客户端 is cross platform, with official builds for Windows, Linux, and MacOS. It supports singleplayer and multiplayer, with or without bots.
It features all the standard riichi rules, as well as some optional ones. It also supports 游戏 logging, so games can be again.
Prebuilt binaries for windows can be found in the release section.
<di="text-align:center">
<img src =" />
<img src =" />
</div>
More screenshots can be found here.
The easiest way to build the 客户端 on Windows is to use the MSYS2 en with a MinGW toolchain.
You need to start off by installing MSYS2.
Once that is done, open up your MSYS2-mingw64 shell and run the following commands:
On MacOS the 客户端 can be built using Command Line Tools for macOS and MacPorts.
Start by installing MacPorts and the de tools.
Then run the following commands:
Run the following commands:
Start by cloning the OpenRiichi repository with:
Next, generate a build target with meson using meson build -Dbuildtype=release or meson build -Dbuildtype=debug depending on whether you want a release or debug build.
Build the target with ninja using: ninja -C build
You can also install the target by running: ninja -C build install
You can remove the installed target by running: ninja -C build uninstall
If the installation build succeeded, you should be able to launch the application by running OpenRiichi.
OpenRiichi requires the Data folder (found inside the bin folder) to be in the one of the search directories. OpenRiichi will add the OpenRiichi subdirectory of the default data directory of the OS (usually /usr/share/OpenRiichi) to the search path, along with the the current working directory and the executable directory.
An additional search path can be added during runtime by running OpenRiichi with the --search-directory some_custom_directory flag.
The preferred editor to use is Studio 代码.
It works on all operating systems which are supported for OpenRiichi, and has several extensions for Vala in the Studio Marketplace.
Setting up building and debugging for in windows requires a few tweaks.
First we need to add these MSYS2 directories to our path en (in case of the default MSYS2 install path): C:\msys64\usr\bin and C:\msys64\mingw64\bin
Create or edit your tasks.json file and add the following build command:
This should allow you to run incremental builds from within .
For debugging you will need a MinGW-w64 of GDB. A release package can be found here. Go to the latest release folder and download the x64_64-posix-seh package. Extract the containing mingw64 folder to a location of your choice.
Your launch.json should look like the following:
Where you should replace path_to_your_mingw64 with the path to the mingw64 folder you extracted earlier. You should now be able to debug the application with features such as breakpoints, callstacks, threads, and, inspection.
OpenRiichi is licensed under GPLv3.
Feel free to make any changes and submit a pull request.
开发语言:Vala
项目类型:开源日麻客户端
Star 数:153
这是一套开源日麻客户端,代码结构清晰,适合开发者学习游戏的客户端渲染、服务端逻辑、场景管理与资源加载。项目涵盖了游戏的核心玩法、界面交互、地图与角色系统等模块,对理解游戏开发的完整流程具有较高的参考价值。
从技术实现角度看,游戏项目的难点在于:游戏循环与状态管理、资源加载与渲染优化、客户端与服务端的协议同步、以及多平台适配。本项目在这些方面提供了可运行的实现,开发者可以在此基础上进行二次开发或学习研究。
1. 下载源码压缩包,解压到本地开发环境。
2. 根据项目类型准备对应的运行环境(Node.js / Go / C# / Unity / Godot 等)。
3. 按照 README 中的步骤配置依赖、数据库和配置文件。
4. 先启动服务端,再运行客户端,即可进入游戏进行测试。
注意:本项目仅供学习研究使用,请勿用于商业或非法用途。
对于想进入游戏开发领域的开发者来说,这套源码是一个很好的入门参考。通过阅读代码,可以学习到游戏的核心玩法实现、场景与资源管理、网络协议设计、以及渲染优化等关键技术点。
同时,项目中的代码组织方式和模块划分,也展示了游戏项目在工程化方面的实践经验,值得开发者深入研究和借鉴。理解一个完整游戏项目的架构,对后续开发其他类型游戏也很有帮助。
本资源来源于开源社区,仅供学习研究和技术交流使用,请勿用于任何商业或违法违规用途。使用本项目产生的一切后果由使用者自行承担。若涉及第三方权益,请联系删除。
| 资源标题 | 开源日麻 - 开源日麻客户端 |
| 所属分类 | 游戏源码 |
| 发布作者 | admin |
| 发布时间 | 2026-10-05 21:44:28 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 296 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |