lonng / nano

Lightweight, facility, high performance golang based game server framework
MIT License
2.88k stars 445 forks source link

增加kcp支持和一个使用kcp的坦克demo #82

Closed cute-angelia closed 2 years ago

cute-angelia commented 2 years ago

What problem does this PR solve?

kcp 协议支持

三方库为: github.com/xtaci/kcp-go

What is changed and how it works?

  1. 增加 kcp 支持
  2. 增加 demo (使用kcp的坦克)

本来kcp支持很简单,几行就能支持了, 之前也没考虑要pr,我在写这个过程中,写了个 tank demo,这样 pr 内容看起来有点乱。

要是介意新增的 demo ,就不用合了, 麻烦作者抽空加一下 kcp 就好了。

lonng commented 1 year ago

@cute-angelia Sorry for replying lately. It's an awesome demo and I think it's useful for others. Can you refine the code and reopen the pull request?