Surakarta-Online:使用Node.js进行Surakarta的实时游戏托管-源码

上传者: 42114645 | 上传时间: 2021-05-07 13:03:33 | 文件大小: 132KB | 文件类型: ZIP
Surakarta在线 使用Node.js进行Surakarta的实时游戏托管。 该项目仍在开发中。 特征 WebSocket用于实现服务器与客户端之间游戏状态的实时更新; 这个基于Web的游戏的后端部分是使用Node.js实现的。 后端程序旨在同时托管多个进行中的游戏。 错误预防也得到了很好的实施,可以检测和拦截任何欺诈请求; 前端部分的游戏板由paper.js渲染; 游戏和用户的数据模型由Mongoose实现。 游戏说明 请参考 。 安装提示 应该预先安装和 。 默认情况下,HTTP服务器在端口2100上运行。 您可以在bin/www ()中对其进行更改。 集成在此软件中。 请创建一个新文件, static_data/recaptcha.json为static_data/recaptcha.json ,其内容如下: { " PublicKey " : " [YOUR PUBL

文件下载

资源详情

[{"title":"( 46 个子文件 132KB ) Surakarta-Online:使用Node.js进行Surakarta的实时游戏托管-源码","children":[{"title":"Surakarta-Online-master","children":[{"title":"static_data","children":[{"title":"country.json <span style='color:#111;'> 8.67KB </span>","children":null,"spread":false}],"spread":true},{"title":"bin","children":[{"title":"www <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false}],"spread":true},{"title":"package.json <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"db","children":[{"title":"user.js <span style='color:#111;'> 8.94KB </span>","children":null,"spread":false},{"title":"game.js <span style='color:#111;'> 9.50KB </span>","children":null,"spread":false}],"spread":true},{"title":".github","children":[{"title":"ISSUE_TEMPLATE","children":[{"title":"bug_report.md <span style='color:#111;'> 799B </span>","children":null,"spread":false},{"title":"feature_request.md <span style='color:#111;'> 560B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"routes","children":[{"title":"statHandler.js <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"gameHandler.js <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"userHandler.js <span style='color:#111;'> 8.86KB </span>","children":null,"spread":false}],"spread":true},{"title":"package-lock.json <span style='color:#111;'> 213.05KB </span>","children":null,"spread":false},{"title":"views","children":[{"title":"error.pug <span style='color:#111;'> 92B </span>","children":null,"spread":false},{"title":"stat","children":[{"title":"map.pug <span style='color:#111;'> 709B </span>","children":null,"spread":false}],"spread":true},{"title":"game","children":[{"title":"play.pug <span style='color:#111;'> 2.63KB </span>","children":null,"spread":false},{"title":"hall.pug <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false}],"spread":true},{"title":"user","children":[{"title":"settings.pug <span style='color:#111;'> 5.16KB </span>","children":null,"spread":false},{"title":"signin.pug <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"signup.pug <span style='color:#111;'> 3.84KB </span>","children":null,"spread":false},{"title":"profile.pug <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"recaptcha.pug <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout.pug <span style='color:#111;'> 116B </span>","children":null,"spread":false},{"title":"index.pug <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false},{"title":"public","children":[{"title":"css","children":[{"title":"stat","children":[{"title":"map.css <span style='color:#111;'> 142B </span>","children":null,"spread":false}],"spread":true},{"title":"game","children":[{"title":"play.css <span style='color:#111;'> 303B </span>","children":null,"spread":false},{"title":"hall.css <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false}],"spread":true},{"title":"user","children":[{"title":"signup.css <span style='color:#111;'> 484B </span>","children":null,"spread":false}],"spread":false},{"title":"pace-flash.css <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"style.css <span style='color:#111;'> 110B </span>","children":null,"spread":false}],"spread":true},{"title":"img","children":[{"title":"logo-16.png <span style='color:#111;'> 519B </span>","children":null,"spread":false},{"title":"logo-512.png <span style='color:#111;'> 17.30KB </span>","children":null,"spread":false},{"title":"logo.svg <span style='color:#111;'> 909B </span>","children":null,"spread":false},{"title":"unk-flag.svg <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false}],"spread":true},{"title":"robots.txt <span style='color:#111;'> 25B </span>","children":null,"spread":false},{"title":"js","children":[{"title":"stat","children":[{"title":"map.js <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false}],"spread":false},{"title":"game","children":[{"title":"canvas.js <span style='color:#111;'> 16.46KB </span>","children":null,"spread":false},{"title":"hall.js <span style='color:#111;'> 2.77KB </span>","children":null,"spread":false}],"spread":false},{"title":"user","children":[{"title":"settings.js <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false},{"title":"signup.js <span style='color:#111;'> 3.59KB </span>","children":null,"spread":false}],"spread":false},{"title":"pace.min.js <span style='color:#111;'> 12.26KB </span>","children":null,"spread":false}],"spread":false},{"title":"favicon.ico <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":true},{"title":"app.js <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"COPYING <span style='color:#111;'> 31.63KB </span>","children":null,"spread":false},{"title":"socketHandler.js <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明