{"id":13672941,"url":"https://github.com/feichao93/battle-city","last_synced_at":"2025-09-27T10:31:35.722Z","repository":{"id":41384242,"uuid":"83436064","full_name":"feichao93/battle-city","owner":"feichao93","description":"🎮 Battle city remake built with react.","archived":true,"fork":false,"pushed_at":"2022-01-13T10:18:34.000Z","size":8006,"stargazers_count":1816,"open_issues_count":10,"forks_count":325,"subscribers_count":41,"default_branch":"master","last_synced_at":"2024-09-23T09:02:58.695Z","etag":null,"topics":["battle-city","game","react","redux","redux-saga","svg"],"latest_commit_sha":null,"homepage":"https://battle-city.js.org/","language":"TypeScript","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/feichao93.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}},"created_at":"2017-02-28T13:31:04.000Z","updated_at":"2024-09-22T07:23:47.000Z","dependencies_parsed_at":"2022-07-17T02:00:43.718Z","dependency_job_id":null,"html_url":"https://github.com/feichao93/battle-city","commit_stats":null,"previous_names":["feichao93/battle-city","shinima/battle-city"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feichao93%2Fbattle-city","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feichao93%2Fbattle-city/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feichao93%2Fbattle-city/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feichao93%2Fbattle-city/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feichao93","download_url":"https://codeload.github.com/feichao93/battle-city/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219867304,"owners_count":16554316,"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":["battle-city","game","react","redux","redux-saga","svg"],"created_at":"2024-08-02T09:01:59.197Z","updated_at":"2025-09-27T10:31:30.157Z","avatar_url":"https://github.com/feichao93.png","language":"TypeScript","readme":"# 坦克大战复刻版（Battle City Remake）\n\n游戏地址: https://shinima.github.io/battle-city\n\n游戏详细介绍见知乎专栏文章: [https://zhuanlan.zhihu.com/p/35551654](https://zhuanlan.zhihu.com/p/35551654)\n\n该 GitHub 仓库的版本是经典坦克大战的复刻版本，基于原版素材，使用 React 将各类素材封装为对应的组件。素材使用 SVG 进行渲染以展现游戏的像素风，可以先调整浏览器缩放再进行游戏，1080P 屏幕下使用 200% 缩放为最佳。此游戏使用网页前端技术进行开发，主要使用 React 进行页面展现，使用 Immutable.js 作为数据结构工具库，使用 redux 管理游戏状态，以及使用 redux-saga/little-saga 处理复杂的游戏逻辑。\n\n如果游戏过程中发现任何 BUG 的话，欢迎提 [issue](https://github.com/shinima/battle-city/issues/new)。\n\n### 开发进度：\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cb\u003eMilestone 0.2（已完成于 2018-04-16)\u003c/b\u003e\u003c/summary\u003e\n\n- [x] 游戏的基本框架\n- [x] 单人模式\n- [x] 展览页面\n- [x] 关卡编辑器与自定义关卡管理\n\n\u003c/details\u003e\u003cbr\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cb\u003eMilestone 0.3（已完成于 2018-11-03）\u003c/b\u003e\u003c/summary\u003e\n\n- [x] 性能优化\n- [x] 完整的游戏音效（有一些小瑕疵）\n- [x] 双人模式（已完成）\n\n\u003c/details\u003e\u003cbr\u003e\n\n**Milestone 1.0（看起来遥遥无期 /(ㄒ o ㄒ)/~~）**\n\n- [ ] 更合理的电脑玩家\n- [ ] 完整的设计、开发文档\n- [ ] 基于 websocket 的多人游戏模式\n\n### 本地开发\n\n1.  克隆该项目到本地\n2.  运行 `yarn install` 来安装依赖 （或者使用 `npm install`）\n3.  运行 `yarn start` 开启 webpack-dev-server，并在浏览器中打开 `localhost:8080`\n4.  运行 `yarn build` 来打包生产版本，打包输出在 `dist/` 文件夹下\n\n`devConfig.js` 包含了一些开发用的配置项，注意修改该文件中的配置之后需要重启 webpack-dev-server\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeichao93%2Fbattle-city","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeichao93%2Fbattle-city","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeichao93%2Fbattle-city/lists"}