🎮 Battle city remake built with react.
See the code经典坦克大战的网页复刻,支持单人、双人、局域网联机、关卡编辑和 AI 托管。
在线游玩:https://battle-city.js.org
如果游戏过程中发现任何 BUG 的话,欢迎提 issue。
需要 Node.js 18 及以上:
npx battle-city # 或者 npm i -g battle-city 之后运行 battle-city
npx battle-city --port 3000
npx battle-city host # 局域网联机主机,把打印出的地址发给同一网络里的另一位玩家
启动后按 Enter 在浏览器中打开,Ctrl+C 退出。默认端口 8080,被占用时依次往后找。
pnpm install
pnpm dev # vite 开发服务器
pnpm test # 单测;pnpm arena 跑托管 AI 对 bot 的无头对局统计
pnpm build # 按相对路径打包到 dist/,放在任意路径下都能打开
pnpm build:npm # 按相对路径打包到 www/,npm 包用的就是它
Milestone 0.4.0(2026-09-28)
在 Claude Opus 5.5 的帮助下全面重写:
battle-city host 启动大厅,同一网络里的两人创建或加入房间对战0.2、0.3 使用 React 将原版素材封装为组件、用 SVG 渲染,使用 Immutable.js、redux 和 redux-saga/little-saga 管理游戏状态与逻辑,开发过程见 resources/journal.md。
16 followers · starred Dec 2024
100 followers · starred Aug 2020
151 followers · starred Apr 2018
757 followers · starred Apr 2018
🎮 Battle city remake built with react.
See the code经典坦克大战的网页复刻,支持单人、双人、局域网联机、关卡编辑和 AI 托管。
在线游玩:https://battle-city.js.org
如果游戏过程中发现任何 BUG 的话,欢迎提 issue。
需要 Node.js 18 及以上:
npx battle-city # 或者 npm i -g battle-city 之后运行 battle-city
npx battle-city --port 3000
npx battle-city host # 局域网联机主机,把打印出的地址发给同一网络里的另一位玩家
启动后按 Enter 在浏览器中打开,Ctrl+C 退出。默认端口 8080,被占用时依次往后找。
pnpm install
pnpm dev # vite 开发服务器
pnpm test # 单测;pnpm arena 跑托管 AI 对 bot 的无头对局统计
pnpm build # 按相对路径打包到 dist/,放在任意路径下都能打开
pnpm build:npm # 按相对路径打包到 www/,npm 包用的就是它
Milestone 0.4.0(2026-09-28)
在 Claude Opus 5.5 的帮助下全面重写:
battle-city host 启动大厅,同一网络里的两人创建或加入房间对战0.2、0.3 使用 React 将原版素材封装为组件、用 SVG 渲染,使用 Immutable.js、redux 和 redux-saga/little-saga 管理游戏状态与逻辑,开发过程见 resources/journal.md。
16 followers · starred Dec 2024
100 followers · starred Aug 2020
151 followers · starred Apr 2018
757 followers · starred Apr 2018