Git Product home page Git Product logo

bodyet's Introduction

知乎文章:https://zhuanlan.zhihu.com/p/271195695

基于旧版ET6.0,实现了一套实体、组件属性自动同步的流程(类似KBEngine的属性自动同步),另外集成了Box2dSharp物理库,并基于这两个做了一个topdpwn射击demo。

QQ截图20201005122500.png

基于Odin和ScriptableObject实现了一个protobuf消息协议定义工具

点击Proto2CS命令即可生成全部协议文件

反向导入消息类列表 按钮会解析现有对应的proto协议文件然后重新初始化并填充ScriptableObject协议配置,一般只在一开始用一次

QQ截图20201005121009.png

添加自动生成客户端和服务端消息处理基类和方法的流程

直接override就可以进入消息处理流程,不需要再新建代码文件、手写消息处理类等

点击Proto2CS命令即可生成代码

关于Request类型的协议凑对的规则,同名的Request和Response协议会凑对,比如LoginRequest和LoginResponse会凑对

如果没找到同名Response协议,则会找带下划线前缀相反的同名Response协议,比如C2R_Login和R2C_Login会凑对,C2R_LoginRequest和R2C_LoginResponse会凑对

如果还没有找到那就会默认和MessageResponse协议凑对

QQ截图20201005122804.png

To Do:

调通BulletSharp碰撞流程

集成LockstepCollision定点数碰撞库:https://github.com/JiepengTan/LockstepCollision

集成EGamePlay战斗框架:https://github.com/m969/EGamePlay

bodyet's People

Contributors

m969041 avatar m969 avatar xdreamboy2x avatar

Stargazers

 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.