Git Product home page Git Product logo

game's Introduction

game(逻辑)

Build Status

设计理念

游戏服务器对agent只提供一个接口, 即:

rpc Stream(stream Game.Frame) returns (stream Game.Frame);

接收来自agent的请求Frame流,并返回给agent响应Frame流

来自设备的数据包,通过agent后直接透传到game server, Frame大体分为两类:

  1. 链路控制(register, kick)
  2. 来自设备的经过agent解密后的数据包 (message)

数据包(message)格式为:

协议号+数据

    +----------------------------------+     
    | PROTO(2) | PAYLOAD(n)            |     
    +----------------------------------+     

在client_handler目录中绑定对应函数进行处理,协议生成和绑定通过tools目录中的脚本进行。

协议的绑定参考 https://github.com/gonet2/tools/tree/master/proto_scripts

安装

参考Dockerfile

game's People

Contributors

xtaci avatar johnnyluo586 avatar yoki123 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.