Browse Source

ft: readme.md修改

master
SisMaker 4 years ago
parent
commit
9ad000a4cc
1 changed files with 3 additions and 32 deletions
  1. +3
    -32
      README.md

+ 3
- 32
README.md View File

@ -19,9 +19,9 @@ Behavior3的erlang支持库
使用 使用
---- ----
{TitleMaps, TreeMaps, TreeNodeMaps} = behavior_tree:load_tree_file("example.json"),
{ok, RootID} = behavior_tree:init_btree_by_title(<<"example_ai"/utf8>>, TitleMaps, TreeMaps, TreeNodeMaps),
{_BTStatus, _BTState1} = behavior_tree:execute(RootID, BTState = #{}).
{TitleMaps, TreeMaps, TreeNodeMaps} = eBhv3:load_tree_file("example.json"),
{ok, RootID} = eBhv3:init_btree_by_title(<<"example_ai"/utf8>>, TitleMaps, TreeMaps, TreeNodeMaps),
{_BTStatus, _BTState1} = eBhv3:execute(RootID, BTState = #{}).
更多 更多
---- ----
@ -47,35 +47,6 @@ Behavior3的erlang支持库
[(八)行为树应用之设计丧尸AI](http://note.youdao.com/s/3wKFxcTw) [(八)行为树应用之设计丧尸AI](http://note.youdao.com/s/3wKFxcTw)
English
=====
Behavior3 by erlang library
Quickstart
----
add to **rebar.config**
{deps, [
...
{behavior3erl, "1.0.0"}
]}.
Build
----
$ rebar3 compile
Usage
----
{TitleMaps, TreeMaps, TreeNodeMaps} = eBhv3:load_tree_file("example.json"),
{ok, RootID} = eBhv3:init_btree_by_title(<<"example_ai"/utf8>>, TitleMaps, TreeMaps, TreeNodeMaps),
{_BTStatus, _BTState1} = eBhv3:execute(RootID, BTState = #{}).
More
----
[behavior3editor](https://github.com/behavior3/behavior3editor) [behavior3editor](https://github.com/behavior3/behavior3editor)
[behavior3go](https://github.com/magicsea/behavior3go) [behavior3go](https://github.com/magicsea/behavior3go)

Loading…
Cancel
Save