godotjs / javascript

Javascript binding for godotengine
https://godotjs.github.io/
MIT License
980 stars 82 forks source link

Research implementing behave-graph as a Javascript library #141

Closed fire closed 1 year ago

fire commented 2 years ago

Research implementing behave-graph as a Javascript library that can execute code.

  1. portable TypeScript
  2. graphs are .json
  3. Missing integration with graph edit. Compare with react-flow which I can't use https://behave-flow.netlify.app/

https://github.com/bhouston/behave-graph

Recording here. probably doesn't fit this repository.

Example node graph

[
    {
        "type": "lifecycle/start"
    },
    {
        "type": "action/log",
        "inputs": {
            "flow": { "links": [ { "node": 0, "socket": "flow" } ] },
            "text": { "value": "Hello World!" }
        }
    }
]

Example entry point.

https://github.com/bhouston/behave-graph/blob/main/src/lib/index.ts

Open questions

Can I ECMAScript execute the above json with behave-graph today?

fire commented 1 year ago

Closing due to lack of interest.