基于 React 的坦克大战复刻版 Battle City Remake

MIT
TypeScript
跨平台
2019-05-15
xplanet

Battle City Remake 是基于 React 的高质量坦克大战复刻版。

该仓库的版本是经典坦克大战的复刻版本,基于原版素材,使用 React 将各类素材封装为对应的组件。素材使用 SVG 进行渲染以展现游戏的像素风,可以先调整浏览器缩放再进行游戏,1080P 屏幕下使用 200% 缩放为最佳。此游戏使用网页前端技术进行开发,主要使用 React 进行页面展现,使用 Immutable.js 作为数据结构工具库,使用 redux 管理游戏状态,以及使用 redux-saga/little-saga 处理复杂的游戏逻辑。

本地开发

  1. 克隆该项目到本地
  2. 运行 yarn install 来安装依赖 (或者使用 npm install
  3. 运行 yarn start 开启 webpack-dev-server,并在浏览器中打开 localhost:8080
  4. 运行 yarn build 来打包生产版本,打包输出在 dist/ 文件夹下

devConfig.js 包含了一些开发用的配置项,注意修改该文件中的配置之后需要重启 webpack-dev-server

游戏地址: http://shinima.pw/battle-city/

游戏详细介绍:https://zhuanlan.zhihu.com/p/35551654

的码云指数为
超过 的项目
加载中

评论(0)

暂无评论

暂无资讯

暂无问答

B - Battle City bfs+优先队列

##来源poj2312 Many of us had played the game "Battle city" in our childhood, and some people (like me) even often play it on computer now. What we are discussing is a simple edi...

2018/08/18 14:35
20
0
Codeforces Round #547 (Div. 3) E. Superhero Battle

E. Superhero Battle A superhero fights with a monster. The battle consists of rounds, each of which lasts exactly 𝑛n minutes. After a round ends, the next round starts immedi...

2019/03/22 15:23
5
0
【leetcode】1029. Two City Scheduling

题目如下: There are 2N people a company is planning to interview. The cost of flying the i-th person to city A is costs[i][0], and the cost of flying the i-th person to city B ...

2019/04/24 22:56
6
0
2018 ACM-ICPC 宁夏 H.Fight Against Monsters(贪心)

It is my great honour to introduce myself to you here. My name is Aloysius Benjy Cobweb Dartagnan Egbert Felix Gaspar Humbert Ignatius Jayden Kasper Leroy Maximilian. As a story...

2019/08/31 14:00
7
0
masonry中不同的方法的意思

/** * Creates a MASConstraintMaker with the callee view. * Any constraints defined are added to the view or the appropriate superview once the block has finished executing * * @...

2019/02/20 20:26
37
0
【分享】曾经做的一个JS小游戏——《Battle City》

Source: http://files.cnblogs.com/index-html/BattleCity.rar https://github.com/darknessitachi/BattleCity   今天改网盘密码时,找到了个很久前的东西:JavaScript版的坦克大战。07年的...

2015/09/24 16:29
37
0
[ZOJ3195]Design the city

Cerror is the mayor of city HangZhou. As you may know, the traffic system of this city is so terrible, that there are traffic jams everywhere. Now, Cerror finds out that the mai...

2018/07/17 15:57
21
0
pat 顶级 1001 Battle Over Cities - Hard Version (35 分)

It is vitally important to have all the cities connected by highways in a war. If a city is conquered by the enemy, all the highways from/toward that city will be closed. To kee...

2019/09/11 11:02
14
0
[Swift]LeetCode1029. 两地调度 | Two City Scheduling

★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ ➤微信公众号:山青咏芝(shanqingyongzhi) ➤博客园地址:山青咏芝(https://www.cnblogs.com/stren...

2019/04/21 12:12
3
0
基于city-picker的省市区三级联动列表

网址: http://tshi0912.github.io/city-picker/ 下载: city-picker-master.zip 复制 dist 下内容,到项目下就可以使用 引入4个文件 有html和js俩种用法 1、HTML 2、JS 清除 city picker 选...

2018/03/01 19:55
14
0

没有更多内容

加载失败,请刷新页面

返回顶部
顶部