{"id":23428365,"url":"https://github.com/visualgmq/grogue","last_synced_at":"2025-04-12T20:21:01.432Z","repository":{"id":63676458,"uuid":"534074001","full_name":"VisualGMQ/grogue","owner":"VisualGMQ","description":"grogue是一个参考了CDDA，饥荒的Roguelite游戏。玩家需要存活下去，并且探索不同的世界（施工中）","archived":false,"fork":false,"pushed_at":"2023-10-17T06:43:36.000Z","size":9326,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-26T14:38:48.611Z","etag":null,"topics":["cmake","cpp","cpp17","game","game-2d","game-development","roguelite","sdl2"],"latest_commit_sha":null,"homepage":"https://visualgmq.github.io/grogue/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VisualGMQ.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}},"created_at":"2022-09-08T06:08:58.000Z","updated_at":"2024-05-19T14:58:02.000Z","dependencies_parsed_at":"2024-12-23T07:12:19.386Z","dependency_job_id":"065d1475-059e-4e25-b465-ca368ebaf4fa","html_url":"https://github.com/VisualGMQ/grogue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VisualGMQ%2Fgrogue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VisualGMQ%2Fgrogue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VisualGMQ%2Fgrogue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VisualGMQ%2Fgrogue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VisualGMQ","download_url":"https://codeload.github.com/VisualGMQ/grogue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248626379,"owners_count":21135653,"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":["cmake","cpp","cpp17","game","game-2d","game-development","roguelite","sdl2"],"created_at":"2024-12-23T07:12:14.509Z","updated_at":"2025-04-12T20:21:01.386Z","avatar_url":"https://github.com/VisualGMQ.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grogue\n\n[![Build status](https://ci.appveyor.com/api/projects/status/dri0av5hvheh7o9r?svg=true)](https://ci.appveyor.com/project/VisualGMQ/grogue-32xuj)\n![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/VisualGMQ/grogue/build.yml?branch=rewrite\u0026label=clang%2B%2B\u0026logo=ubuntu)\n\n**此工程底层后面要大改，不建议现在阅读代码。**\n\nGrogue是一个Roguelite游戏，借鉴了饥荒，CDDA。正在开发中。\n\n可以在[这里](https://visualgmq.github.io/projects/grogue-demo/grogue.html)试玩最新的网页版Grogue，每周日更新。[这里](https://visualgmq.github.io/grogue/)则是Grogue的开发日志，每周增加的功能将会显示在这里。\n\n更多内容，请看[Wiki部分](https://github.com/VisualGMQ/grogue/wiki)\n\n代码目前有一些Bug和缺陷，看[这里](./bug.md)\n\n## 如何编译\n\n使用CMake进行编译，编译需要依赖库`SDL`,`SDL_ttf`,`SDL_image`,`SDL_mixer`。需要安装Python3和llvm来进行头文件解析。\n\n如果你想要为项目贡献代码，编译前推荐安装`clang-format`和`CppCheck`，`clang-format`会帮你自动格式化，`CppCheck`会帮你做静态检查（仅在`Makefile`和`Ninja`工程中）\n\n\nWindows下你需要设置SDL库的根目录：\n\n```bash\ncmake -S . -B cmake-build -DSDL2_ROOT=XXX -DSDL2_TTF_ROOT=XXX -DSDL2_MIXER_ROOT=XXX -DSDL2_TTF_ROOT=XXX\n```\n\n根目录是在Github上下载好的SDL-devel系列包解压后的根目录。\n\n然后编译\n\n```bash\ncmake --build cmake-build\n```\n\n如果你不想手动下载SDL库，可以指定`FETCH_SDL=ON`来让CMake帮你下载（在Github上下载，所以很看网）。\n\n\nLinux和MacOSX下，使用包管理器安装完SDL系列库后，可以直接进行编译：\n\n```bash\ncmake -S . -B build\ncmake --build build\n```\n\n\n要编译成网页汇编（WASM），请先安装emscripten工具，然后使用CMake编译：\n\n```bash\nemcmake cmake -S . -B wasm-build\ncmake --build build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisualgmq%2Fgrogue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvisualgmq%2Fgrogue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisualgmq%2Fgrogue/lists"}