带有node.js的状态机,用于MMO游戏

发布于 2025-02-13 01:55:31 字数 167 浏览 1 评论 0原文

我在后端(node.js)上有几个问题。 我正在制作MMO游戏,我想在后端使用有限状态机。服务器通过JSON通过UDP与客户端通信。 (在客户上具有自编写的状态机) 哪种模式最适合MMO游戏服务器?如果您提供文档链接,我会很高兴。 我发现有一个“ Xstate”库。但是我不确定它在node.js上有多好。有人有经验吗?

I have a couple of questions about the state machine on back-end(node.js).
I am making an mmo game and I want to use finite state machine in the backend. The server communicates with the client via UDP with JSON. (On the client have self-written state machine)
Which pattern is best for mmo game server?I will be glad if you provide links to the documentation.
I found out that there is an "Xstate" library. But I'm not sure how good it is on node.js. Has anyone had experience with it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文