Lock Step Server

GoDoc Build Status Go Report

用golang写的帧同步服务器,目标是作为一个可以横向扩展,完全脱离玩法逻辑的帧同步服务器。

特性

运行example server

  1. 启动server go run cmd/example_server/main.go
  2. 创建房间:
    • 方法1. 浏览器打开 http://localhost 点创建
    • 方法2. 命令 sh cmd/example_client/create_room.sh

运行example client

  1. 启动1号客户端 go run cmd/example_client/main.go -room=1 -id=1
  2. 启动2号客户端 go run cmd/example_client/main.go -room=1 -id=2

网络层

客户端接入流程

proto文件

断线重连

客户端工程

https://github.com/byebyebruce/lockstep-client-unity