-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
协议可简化 #1
Comments
读条准备是客户端逻辑,服务器不管。 |
抱歉这么久才看见。帧同步服务器的消息确实是可以定义很简单。我的考虑在: |
通用帧同步服务器应该允许没有读条,没有重连,读条和重连都是和游戏玩法逻辑相关的。如有的游戏可以随时加入房间,不需要等人齐了一起进入。有的游戏断线就算逃跑失败。 |
读条肯定不是必要的。只不过我们项目中有,这个确实跟需求而定。中途加入不就是重连吗?不给你发前面的帧数据怎么继续下去?请赐教不胜感激 |
重连是通用功能。我定义的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我定义的帧同步服务器协议如下,可以讨论下:
各消息定义如下:
The text was updated successfully, but these errors were encountered: