Replies: 3 comments 3 replies
-
这个问题我记得云风在 blog 写过方案,大概是类似 long polling 的做法。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
可以参考下原神的私服源码,他们就是做一个类似的模拟战斗和移动,如果只是普通RPG非动作类同步的,完全可以满足需求。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
组队副本看起来应该是类似在一个房间里的逻辑,如果客户端是Untiy的话,可以先技术调研一下Unity Network,或者Mirror
Networking,服务端基于 redis做一个 match-making 服务就好了。
…On Wed, May 24, 2023 at 8:51 AM ericzhanchina ***@***.***> wrote:
谢谢指点,我去学习一下
—
Reply to this email directly, view it on GitHub
<#1751 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABDOEN4NOI6DCK5FLE3MLATXHVLSBANCNFSM6AAAAAAYLCPIUE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我们的游戏是RPG,单机的PVE玩法为主,战斗也都是在客户端做的,现在想做一个组队副本的玩法,由于通信协议是使用的MsgServer,基于请求和响应模式,这种情况下,如果想在副本场景地图上实时更新其他几个组队玩家的位置,是不是就需要客户端比如每100ms就要将自己的位置发送给服务器,服务器收到之后将其他玩家的位置都发送给客户端。基于请求响应的模式,应该是不能服务器广播给组队的几个客户端的吧。
初次做游戏服务器代码,经验不足,还请大佬给多提一些靠谱的方案,我去学习一下。
Beta Was this translation helpful? Give feedback.
All reactions