Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 668 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 668 Bytes

Example usage of BehaviorTree.js lib

This are working example for the BehaviorTree.js lib.

using ES modules

In the es6/ folder you find an example using new ES modules syntax. This uses babel for transpiling which, of course, can be used within a browser via webpack. Or in node via babel-node provided by babel-cli.

Try it out like this:

cd es6
yarn
npx babel-node example.js

using common.js (node.js)

In the nodejs folder you find an example that can be used within simple node.js environments.

Try it out like this:

cd nodejs
yarn
node example.js