behavior3行为树
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
1.9 KiB

пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
  1. 中文
  2. =====
  3. Behavior3的erlang支持库
  4. 快速开始
  5. ----
  6. 添加如下内容到**rebar.config**
  7. {deps, [
  8. ...
  9. {behavior3erl, "1.0.0"}
  10. ]}.
  11. 编译
  12. ----
  13. $ rebar3 compile
  14. 使用
  15. ----
  16. {TitleMaps, TreeMaps, TreeNodeMaps} = behavior_tree:load_tree_file("example.json"),
  17. {ok, RootID} = behavior_tree:init_btree_by_title(<<"example_ai"/utf8>>, TitleMaps, TreeMaps, TreeNodeMaps),
  18. {_BTStatus, _BTState1} = behavior_tree:execute(RootID, BTState = #{}).
  19. 更多
  20. ----
  21. [behavior3editor](https://github.com/behavior3/behavior3editor)
  22. [behavior3go](https://github.com/magicsea/behavior3go)
  23. #### Behavior3使用系列文章:
  24. [(一)行为树应用之行为树简介](http://note.youdao.com/s/77bGugj9)
  25. [(二)行为树应用之组合节点](http://note.youdao.com/s/XiKlHPIr)
  26. [(三)行为树应用之装饰节点](http://note.youdao.com/s/9Z6zI3YE)
  27. [(四)行为树应用之自定义节点](http://note.youdao.com/s/AcRrY8ig)
  28. [(五)行为树应用之加载行为树](http://note.youdao.com/s/DiqLf0ES)
  29. [(六)行为树应用之节点执行](http://note.youdao.com/s/PI3Wic5D)
  30. [(七)行为树应用之设计巡逻兵AI](http://note.youdao.com/s/HTCGTgAm)
  31. [(八)行为树应用之设计丧尸AI](http://note.youdao.com/s/3wKFxcTw)
  32. English
  33. =====
  34. Behavior3 by erlang library
  35. Quickstart
  36. ----
  37. add to **rebar.config**
  38. {deps, [
  39. ...
  40. {behavior3erl, "1.0.0"}
  41. ]}.
  42. Build
  43. ----
  44. $ rebar3 compile
  45. Usage
  46. ----
  47. {TitleMaps, TreeMaps, TreeNodeMaps} = behavior_tree:load_tree_file("example.json"),
  48. {ok, RootID} = behavior_tree:init_btree_by_title(<<"example_ai"/utf8>>, TitleMaps, TreeMaps, TreeNodeMaps),
  49. {_BTStatus, _BTState1} = behavior_tree:execute(RootID, BTState = #{}).
  50. More
  51. ----
  52. [behavior3editor](https://github.com/behavior3/behavior3editor)
  53. [behavior3go](https://github.com/magicsea/behavior3go)