Giter VIP home page Giter VIP logo

behavior3go's Introduction

behavior3go

golang behavior tree,from https://github.com/behavior3

简介

带在线编辑器的行为树,可使用官方的在线编辑器编辑逻辑节点。
使用js版本翻译,保持和原版的编辑器数据格式一致。
此行为树和一般的行为树略有不同,行为树结构只保持一份无状态,状态记录在黑板里(一般行为树每个对象一份树结构,树结构保存状态)。
专用的编辑器分支版本
重新部署的WEB版编辑器
编译好的桌面版

示例 Examples

完整示例

io类游戏示例
bin/b3.json为行为树的数据,在编辑器中新建任意工程,选择(Project->Import->Tree as json)导入树就可以还原工程,如图。

image

网页版编辑器本地搭建方法

  • 下载源码到本地(工程目录) https://github.com/magicsea/behavior3editor
  • 安装nodejs,npm
  • 安装bower: npm install -g bower
  • 安装依赖包:cd到工程目录下 npm install 然后 bower install
  • 安装gulp:npm install --global gulp
  • 运行:在工程目录下 gulp serve
  • 客户端用浏览器打开 http://127.0.0.1:8000
  • 自己部署web版本,只需要把生成的build目录放到自己的tomcat,IIS目录就可以浏览器访问

更新

  • 添加子树支持 SubTree 节点,需要编辑器修改node导出category字段

其他的参考

FAQ

  • Q:子树的相同记忆节点的黑板信息是重复的?
A:是个问题,但是由于下一次进入会onopen重置节点黑板信息,并不会有错误表现。如果遇到BUG表现欢迎提出。
  • Q:Tick里的target如何调用
A:用在ai里,一般target就这个ai的拥有者,拥有者有blackboard的成员。

上线项目

联系

QQ群:285728047

behavior3go's People

Contributors

magicsea avatar linchendev avatar

Watchers

James Cloos 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.