{"id":24956413,"url":"https://github.com/whjwnavy/gametank","last_synced_at":"2026-07-06T02:31:03.636Z","repository":{"id":55767134,"uuid":"173019427","full_name":"WHJWNAVY/GameTank","owner":"WHJWNAVY","description":"GameTank  With WinAPI+C","archived":false,"fork":false,"pushed_at":"2022-08-10T05:50:33.000Z","size":18082,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T20:36:16.115Z","etag":null,"topics":["c","gametank","winapi"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WHJWNAVY.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-28T01:36:55.000Z","updated_at":"2019-03-01T03:14:20.000Z","dependencies_parsed_at":"2022-08-15T06:50:47.953Z","dependency_job_id":null,"html_url":"https://github.com/WHJWNAVY/GameTank","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/WHJWNAVY/GameTank","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WHJWNAVY%2FGameTank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WHJWNAVY%2FGameTank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WHJWNAVY%2FGameTank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WHJWNAVY%2FGameTank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WHJWNAVY","download_url":"https://codeload.github.com/WHJWNAVY/GameTank/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WHJWNAVY%2FGameTank/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006765,"owners_count":26084148,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":["c","gametank","winapi"],"created_at":"2025-02-03T06:35:16.023Z","updated_at":"2025-10-11T08:17:59.395Z","avatar_url":"https://github.com/WHJWNAVY.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 坦克大战-C语言版\n\n# 游戏体验\n\n\u003e ![](https://raw.githubusercontent.com/WHJWNAVY/myImage/master/PicGo/20180905135655.gif)\n\n\n\n# 视频版\n\n\u003e [坦克大战-C语言版-GameTank](https://v.youku.com/v_show/id_XMzgxMTc1MjI0OA==.html)\n\n\n\n# 代码框架\n\n坦克大战游戏代码框架如下\n![](https://raw.githubusercontent.com/WHJWNAVY/myImage/master/PicGo/20180905131328.png)\n在 ***main.c*** 中,创建应用窗口,并初始化一些系统资源,然后初始化gdi,初始化坦克大战游戏.\n在 ***gdi.c*** 中,对系统的HDC及绘图接口进行了一次封装,使用WIN32系统提供的绘图接口来实现我们自己的图形绘制API.这里使用到了双缓冲技术,下文会简单介绍.\n在 ***Tank.c*** 中,实现了坦克大战的游戏逻辑,包括贴图系统,地图系统,坦克制造,炮弹制造,装备生成,坦克移动,炮弹移动,以及坦克被炮弹击中,坦克吃到装备,等等.\n\n\n\n## 运行截图\n\n![](https://raw.githubusercontent.com/WHJWNAVY/myImage/master/PicGo/20181015114935.png)\n\n![](https://raw.githubusercontent.com/WHJWNAVY/myImage/master/PicGo/20181015114759.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhjwnavy%2Fgametank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhjwnavy%2Fgametank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhjwnavy%2Fgametank/lists"}