minesweeper_pvp

所属分类:其他智力游戏
开发工具:JavaScript
文件大小:2872KB
下载次数:2
上传日期:2020-04-07 16:58:46
上 传 者熙決
说明:  经典扫雷升级版之即时双人联机对战扫雷小游戏。在线匹配,即时对战,带聊天功能。用nodejs搭建简易的服务端,websocket实现即时通信,代码量六七百行左右,纯原创,简单注释。玩法:输入昵称进入主界面后即可开始匹配,匹配成功后由率先点击匹配的一方先手,轮流扫雷。此版本禁用了标记功能,难度增加了一些。对战同时可以与对手聊天互动。(用命令行cd到项目根目录,输入node index.js,回车即可开启服务,然后进浏览器访问http://localhost:5999)
(Classic minesweeping upgrade version of real-time double online minesweeping games. Online match, real-time battle, with chat function. Using nodejs to build a simple server, websocket to achieve instant communication, the code amount is about 600 lines, pure original, simple comments.)

文件列表:
audios (0, 2019-04-25)
audios\boom.mp3 (11851, 2018-08-27)
css (0, 2019-04-26)
css\index.css (3596, 2019-04-30)
images (0, 2019-04-25)
images\bg.jpg (1683658, 2019-04-25)
images\minesweeper.png (3971, 2018-08-22)
images\SGY.png (8975, 2019-04-25)
index.html (1622, 2019-04-30)
index.js (5136, 2019-04-26)
js (0, 2019-04-25)
js\index.js (18014, 2020-03-30)
node_modules (0, 2019-04-25)
node_modules\.bin (0, 2019-04-25)
node_modules\.bin\mime (293, 2018-08-06)
node_modules\.bin\mime.cmd (170, 2018-08-06)
node_modules\accepts (0, 2019-04-25)
node_modules\accepts\HISTORY.md (4736, 2018-03-01)
node_modules\accepts\index.js (5252, 2017-04-01)
node_modules\accepts\LICENSE (1167, 2017-04-01)
node_modules\accepts\package.json (2277, 2018-08-06)
node_modules\after (0, 2019-04-25)
node_modules\after\.npmignore (22, 2016-08-16)
node_modules\after\.travis.yml (122, 2016-08-16)
node_modules\after\index.js (685, 2016-08-16)
node_modules\after\LICENCE (1050, 2016-08-16)
node_modules\after\package.json (1466, 2018-08-06)
node_modules\after\test (0, 2019-04-25)
node_modules\after\test\after-test.js (2147, 2016-08-16)
node_modules\array-flatten (0, 2019-04-25)
node_modules\array-flatten\array-flatten.js (1195, 2015-07-10)
node_modules\array-flatten\LICENSE (1103, 2014-03-16)
node_modules\array-flatten\package.json (1655, 2018-08-06)
node_modules\arraybuffer.slice (0, 2019-04-25)
node_modules\arraybuffer.slice\.npmignore (106, 2017-08-29)
node_modules\arraybuffer.slice\index.js (725, 2017-08-29)
node_modules\arraybuffer.slice\LICENCE (1049, 2017-08-29)
... ...

# ms [![Build Status](https://travis-ci.org/zeit/ms.svg?branch=master)](https://travis-ci.org/zeit/ms) [![Slack Channel](http://zeit-slackin.now.sh/badge.svg)](https://zeit.chat/) Use this package to easily convert various time formats to milliseconds. ## Examples ```js ms('2 days') // 172800000 ms('1d') // 8***00000 ms('10h') // 36000000 ms('2.5 hrs') // 9000000 ms('2h') // 7200000 ms('1m') // 60000 ms('5s') // 5000 ms('1y') // 31557600000 ms('100') // 100 ``` ### Convert from milliseconds ```js ms(60000) // "1m" ms(2 * 60000) // "2m" ms(ms('10 hours')) // "10h" ``` ### Time format written-out ```js ms(60000, { long: true }) // "1 minute" ms(2 * 60000, { long: true }) // "2 minutes" ms(ms('10 hours'), { long: true }) // "10 hours" ``` ## Features - Works both in [node](https://nodejs.org) and in the browser. - If a number is supplied to `ms`, a string with a unit is returned. - If a string that contains the number is supplied, it returns it as a number (e.g.: it returns `100` for `'100'`). - If you pass a string with a number and a valid unit, the number of equivalent ms is returned. ## Caught a bug? 1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device 2. Link the package to the global module directory: `npm link` 3. Within the module you want to test your local development instance of ms, just link it to the dependencies: `npm link ms`. Instead of the default one from npm, node will now use your clone of ms! As always, you can run the tests using: `npm test`

近期下载者

相关文件


收藏者