{"id":13629855,"url":"https://github.com/scarsty/kys-cpp","last_synced_at":"2025-05-14T02:02:28.687Z","repository":{"id":41292971,"uuid":"63037248","full_name":"scarsty/kys-cpp","owner":"scarsty","description":"《金庸群侠传》c++复刻版，已完工","archived":false,"fork":false,"pushed_at":"2025-04-05T15:53:34.000Z","size":9185,"stargazers_count":2712,"open_issues_count":24,"forks_count":385,"subscribers_count":78,"default_branch":"master","last_synced_at":"2025-04-10T16:47:36.238Z","etag":null,"topics":["cpp","cpp20","game-development","jinyong","sdl2"],"latest_commit_sha":null,"homepage":"https://tiexuedanxin.net/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scarsty.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-07-11T04:44:19.000Z","updated_at":"2025-04-08T08:29:24.000Z","dependencies_parsed_at":"2023-02-10T07:46:15.704Z","dependency_job_id":"71c0a9f4-6a22-4224-8864-cbb57a735c12","html_url":"https://github.com/scarsty/kys-cpp","commit_stats":{"total_commits":678,"total_committers":14,"mean_commits":48.42857142857143,"dds":0.1327433628318584,"last_synced_commit":"7a2b0b4f6b96d613ff30c01be3bcb4c5d563445a"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scarsty%2Fkys-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scarsty%2Fkys-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scarsty%2Fkys-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scarsty%2Fkys-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scarsty","download_url":"https://codeload.github.com/scarsty/kys-cpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254052658,"owners_count":22006716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","cpp20","game-development","jinyong","sdl2"],"created_at":"2024-08-01T22:01:21.743Z","updated_at":"2025-05-14T02:02:28.638Z","avatar_url":"https://github.com/scarsty.png","language":"C++","readme":"# kys-cpp\n\n金庸群侠传复刻版，为区别于其他语言的复刻版，添加后缀cpp。\n\n\u003cimg src='https://raw.githubusercontent.com/scarsty/kys-cpp/master/pic/title.jpg' /\u003e\n\n除了经典的回合制战斗外，还包含半即时战斗（含进度条），以及两种完全即时战斗模式。即模仿黑帝斯和只狼的战斗系统。可以通过修改ini文件中的battle_mode来切换。\n\ngithub：https://github.com/scarsty/kys-cpp\n\n码云（不定期同步）：https://gitee.com/scarsty/kys-cpp\n\n资源文件：\u003chttp://pan.baidu.com/s/1sl2X9wD\u003e\n\n这是一个以SDL为基础实现的2D游戏框架，同时相当于提供了一个使用该框架制作DOS游戏《金庸群侠传》移植版的范例。\n\n目前的开发分支为“纸片金庸”，即利用2D贴图做出3D体验的尝试。可以参考“纸片马力欧”和“饥荒”的的效果。\n\n## 如何编译\n\n建议使用C++23。\n\nWindows下建议先安装vcpkg，并在vcpkg目录中执行：\n```bat\n.\\vcpkg install sdl3 sdl3-image[png] sdl3-ttf lua opencc sqlite3 libiconv asio picosha2 yaml-cpp opencv\nSDL3的Mixer似乎还没有完成，目前使用bass播放音效。\n```\n建议执行：\n```bat\n.\\vcpkg.exe integrate install\n```\n获取子模块mlcc：\n\n```shell\ngit submodule init\ngit submodule update\n# 可选\ngit submodule update --remote --rebase\n```\n之后使用Visual Studio（尽量用新版）打开kys.sln，编译即可。工程为x64版本，如需要x86版请自行修改。\n\n上面的方法不含播放视频功能。如需要此功能，例如播放开场动画，则需先编译smallpot的动态库，比较复杂，请与作者联系。\n\nLinux下编译参考doc目录中的文档。需注意没有联机对战部分。\n\n对依赖的详细解释见doc目录中的“依赖库.md”。\n\n## 授权\n\n以下文本，若中文和英文存在冲突，则以中文为准。\n\n```\n以 BSD 3-Clause License 授权发布，但是包含两个附加条款：\n一般情况下，可以自由使用代码，也可自由用于商业。\n但若将其用于金庸武侠题材的游戏，则严禁任何形式的牟利行为。\n\nThe source codes are distributed under BSD 3-Clause License license, with two additional clauses.\nFull right of the codes is granted.\nIf the codes are used in Jin Yong's novels related games, the game is strictly prohibited for profit.\n```\n\n## 运行截图\n\n\u003cimg src='https://raw.githubusercontent.com/scarsty/kys-cpp/master/pic/1.png' /\u003e\n\n\u003cimg src='https://raw.githubusercontent.com/scarsty/kys-cpp/master/pic/2.png' /\u003e\n\n\u003cimg src='https://raw.githubusercontent.com/scarsty/kys-cpp/master/pic/3.png' /\u003e\n\n\n## 其他\n\nSpecial thanks to ReSharper C++ for its support to the open source community.\n\n\u003cimg src='https://resources.jetbrains.com/storage/products/company/brand/logos/ReSharperCPP_icon.svg'\u003e\n\nSpecial thanks to WangZi, NiBa, HuaKaiYeLuo, XiaoWu, LiuYunFeiYue, ZhenZhengDeQiangQiang, SanDaShan, SB250 and SB750.\n\n纪念金庸先生对武侠文化的贡献。\n\n","funding_links":[],"categories":["C++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscarsty%2Fkys-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscarsty%2Fkys-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscarsty%2Fkys-cpp/lists"}