{"id":50394172,"url":"https://github.com/skywind3000/gamesample","last_synced_at":"2026-05-30T20:01:27.823Z","repository":{"id":352244252,"uuid":"1214426904","full_name":"skywind3000/GameSample","owner":"skywind3000","description":"Game Samples for GameLib","archived":false,"fork":false,"pushed_at":"2026-05-01T05:55:33.000Z","size":7300,"stargazers_count":42,"open_issues_count":0,"forks_count":8,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-01T07:25:51.040Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/skywind3000.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,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-18T15:04:54.000Z","updated_at":"2026-05-01T05:55:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/skywind3000/GameSample","commit_stats":null,"previous_names":["skywind3000/gamesample"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skywind3000/GameSample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skywind3000%2FGameSample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skywind3000%2FGameSample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skywind3000%2FGameSample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skywind3000%2FGameSample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skywind3000","download_url":"https://codeload.github.com/skywind3000/GameSample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skywind3000%2FGameSample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33707328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-05-30T20:01:25.725Z","updated_at":"2026-05-30T20:01:27.808Z","avatar_url":"https://github.com/skywind3000.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GameSample\n\n使用 [GameLib](https://github.com/skywind3000/GameLib) 制作的完整游戏示例集合。\n\n## GameLib\n\nGameLib 是一个单头文件 C++ 游戏库，专为初学者设计——无需 SDL/DirectX/OpenGL，无需配置，只需 `#include` 即可开始。\n\n- **项目主页**：[https://github.com/skywind3000/GameLib](https://github.com/skywind3000/GameLib)\n- **API 文档**：[docs/manual.md](docs/manual.md) | [docs/quickref.md](docs/quickref.md)\n\n## 游戏列表\n\n| 游戏 | 目录 | 类型 | 特色 |\n|------|------|------|------|\n| 几何大战 | `GeometryWars/` | 无尽射击 | 霓虹几何体、弹簧网格、粒子爆炸 |\n\n每个游戏目录包含：\n- `design.md` — 玩法设计文档\n- `spec.md` — 技术规范文档\n- `assets.md` — 资源列表\n- `assets/` — 音效资源\n- `\u003cgame\u003e.cpp` — 游戏源码\n\n## 编译\n\n```bash\ng++ -o \u003cgame\u003e.exe \u003cgame\u003e.cpp -mwindows\n```\n\n示例：\n\n```bash\ncd GeometryWars\ng++ -o geometry.exe geometry.cpp -mwindows\n```\n\n无需额外链接参数，GameLib 通过动态加载解决所有依赖。\n\n## 代码规范\n\n- C++11 语法，兼容 GCC 4.9.2\n- 通过 `#include \"../GameLib.h\"` 引入 GameLib\n- 保持 `GameLib game; game.Open(...); while (...) { ... }` 的上手模型","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskywind3000%2Fgamesample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskywind3000%2Fgamesample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskywind3000%2Fgamesample/lists"}