金庸群俠傳復刻版,為區別於其他語言的復刻版,加上字尾cpp。
除了經典的回合製戰鬥外,還包含半即時戰鬥(含進度條),以及兩種完全即時戰鬥模式。即模仿哈迪斯和隻狼的戰鬥系統。可以透過修改ini檔案中的battle_mode來切換。
github:https://github.com/scarsty/kys-cpp
碼雲(不定期同步):https://gitee.com/scarsty/kys-cpp
資源檔案:http://pan.baidu.com/s/1sl2X9wD
這是一個以SDL2為基礎實現的2D遊戲框架,同時相當於提供了一個使用該框架製作DOS遊戲《金庸群俠傳》移植版的範例。
因使用了概念,需至少C++20。
Windows下建議先安裝vcpkg,並在vcpkg目錄中執行:
.vcpkg install sdl2:x64-windows sdl2-image:x64-windows sdl2-ttf:x64-windows sdl2-mixer:x64-windows lua:x64-windows opencc:x64-windows sqlite3:x64-windows libiconv:x64-windows asio:x64-windows picosha2:x64-windows yaml-cpp:x64-windows libzip:x64-windows
建議執行:
.vcpkg.exe integrate install
獲取子模組mlcc:
git submodule init
git submodule update
# 可选
git submodule update --remote --rebase
之後再使用Visual Studio(盡量用新版)開啟kys.sln,編譯即可。工程為x64版本,如需要x86版請自行修改。
上面的方法不含播放影片功能。如需要此功能,例如播放開場動畫,則需先編譯smallpot的動態函式庫,比較複雜,請與作者聯絡。
Linux下編譯參考doc目錄中的文件。需注意沒有聯機對戰部分。
對依賴的詳細解釋請參閱doc目錄中的dependencies.md。
以下文本,若中文和英文有衝突,則以中文為準。
以 BSD 3-Clause License 授权发布,但是包含两个附加条款:
一般情况下,可以自由使用代码,也可自由用于商业情况。
但若将其用于金庸武侠题材的游戏,则严禁任何形式的牟利行为。
The source codes are distributed under BSD 3-Clause License license, with two additional clauses.
Full right of the codes is granted.
If the codes are used in Jin Yong's novels related games, the game is strictly prohibited for profit.
特殊 thanks to ReSharper C++ for its support to the open source community.
Special thanks to WangZi, NiBa, HuaKaiYeLuo, XiaoWu, LiuYunFeiYue, ZhenZhengDeQiangQiang, SanDaShan, SB250 and SB750.
紀念金庸先生對武俠文化的貢獻。