KBEngine官方论坛

 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 配置 开服
查看: 388|回复: 3

kbengine_godot_demo

[复制链接]

5

主题

3506

帖子

214748万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2147483647

引擎扛把子

发表于 2018-4-26 09:28:33 | 显示全部楼层 |阅读模式

https://github.com/krogank9/kbe_godot_demo

KBE godot demo
Plugin & Demo explanation:Plug-in:Responsible for the handling of the network, establishing connection to the server, and sending/receiving binary data through TCP packets. Handles login/logout process. Creates/destroys entitiesupon notification from the server, synchronizes their attributes,and allows for calling methods on equivalent base/cell entities onthe server and allows the server to call methods on client entities.Provides an Event class for asynchronous communication with theplugin and KBE entities across multiple threads. Resides in thekbe_plugin directory, and has KBEngine.gd set as a Singleton in Godot project settings.Godot demo:Responsible for handling the rendering and user interaction layer. Defines entity client parts in the kbe_scripts directory (or its subdirectories), which is where the plugin lookswhen creating entities via the servers command. __init__() and onDestroy() are called for notifications about entities' lifecycles.When defining client entities, events are registered with the KBEngine.Event Singleton class in __init__(), and fired out fromentity methods to be received by the render layer.Directory structure:kbe_plugin/: KBE plugin script files, KBEngine.gd set as Singletonkbe_scripts/: Contains all client entity definitions. Place all yours herekbe_scripts/Account.gd: Account client entity definition. Created on loginkbe_scripts/Account.gd: Avatar client entity definition.kbe_scripts/Monster.gd: Monster client entity definition.kbe_scripts/GameObject.gd: GameObject interface, fires events on property changeUI.gd:UI script, catches events thrown by kbe_scripts and built-in protocol events to display login success/fail notifications, allow avatar creation/selectionWorld.gd:Manages 3D world, catches events and creates and destroys rendering objects(mesh etc) for each kbe_script entityGameEntity.gd:Attached to rendering objects and handles smooth movement, HP/name labels above 3D characters, etc



QQ:3603661
3603661@qq.com
回复

使用道具 举报

7

主题

45

帖子

353

积分

中级会员

Rank: 3Rank: 3

积分
353
发表于 2018-4-27 13:44:11 | 显示全部楼层
Cool !Cool !Cool !
如果你需要服务器资源:  做demo,在创业或者意向创业(尤其用KBE), 可以和我联系. 会有一台服务器半年(代金券)供你使用. contact me: cnsoft[@]gmail.com 绿色通道
回复

使用道具 举报

0

主题

1

帖子

4

积分

新手上路

Rank: 1

积分
4
发表于 2018-10-18 11:54:51 | 显示全部楼层
请问楼主: kbcmd 中没有相关参数呢,我只能每个工程都copy这个demo。
回复

使用道具 举报

5

主题

3506

帖子

214748万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2147483647

引擎扛把子

 楼主| 发表于 2018-10-18 12:15:28 | 显示全部楼层
kbcmd --help
QQ:3603661
3603661@qq.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|KBEngine Forum

GMT+8, 2018-12-11 16:32 , Processed in 0.029356 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表