node.js 游戏服务器框架?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9372128/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-02 15:13:08  来源:igfitidea点击:

node.js game server framework?

node.js

提问by LordZardeck

Is there a game server framework for Node.js? I was using nowjs, but I'd like something more geared toward games. While I'd prefer free/open source, i'm willing to look into commercial also. The only requirement I have is that it has to be node.js based.

是否有适用于 Node.js 的游戏服务器框架?我使用的是 nowjs,但我想要更适合游戏的东西。虽然我更喜欢免费/开源,但我也愿意研究商业。我唯一的要求是它必须基于 node.js。

回答by Roger Garzon Nieto

Try Pomelo.js. A distributed game server framework for node.js

试试Pomelo.js。node.js 的分布式游戏服务器框架

回答by Raynos

Maple.jsis a solid starting point for a multiplayer node based game.

Maple.js是基于多人节点的游戏的坚实起点。

The ground architecture has been done and you can check out any other games by Ivo Wetzelto get some inspiration.

地面架构已经完成,您可以查看Ivo Wetzel 的任何其他游戏以获得一些灵感。

回答by almypal

Have played around with Osmus. Check it out.

Osmus 玩过。一探究竟。

回答by majidarif

Disclaimer: I am the author of this experimental game networking framework.

免责声明:我是这个实验性游戏网络框架的作者。

I would recommend checking Nexy. It can help you write modular game servers.

我建议检查Nexy。它可以帮助您编写模块化游戏服务器。

Nexy is a middleware based TCP framework for Node. Written for Multiplayer Games.

Nexy 是一个基于中间件的 Node.js TCP 框架。为多人游戏而写。

The design is inspired by Connects and Express middleware system and those patterns are already proven in production.

该设计的灵感来自 Connects 和 Express 中间件系统,这些模式已经在生产中得到验证。

Try it with npm install nexy.

试试吧npm install nexy

回答by sdale511

shellyjs - sync and async, user reg, stats, object storage, clustering, default turn based game module, player matching, email, connect4 and tictactoe examples, HTTP, WebSocket, and TCP

shellyjs - 同步和异步、用户注册、统计、对象存储、集群、默认回合制游戏模块、玩家匹配、电子邮件、connect4 和 tictactoe 示例、HTTP、WebSocket 和 TCP

https://npmjs.org/package/shellyjs

https://npmjs.org/package/shellyjs

disclosure - I work on this.

披露 - 我正在研究这个。

回答by user2870182

Pomelo is a much better game server framework. It developed much better than other framework. It is much more scalable, can hold many online users. you can see it on github:

Pomelo 是一个更好的游戏服务器框架。它比其他框架开发得好得多。它更具可扩展性,可以容纳许多在线用户。你可以在github上看到它:

https://github.com/NetEase/pomelo

https://github.com/NetEase/pomelo

回答by Vladimir Makhaev

I would recommend Derby. There is exampleof game on Derby.

我会推荐德比。有德比比赛的例子