-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
behavior tree added #4
Conversation
Wow! I'll review it soon. Thanks |
Looks like a really interesting implementation. 👍 However, there are some minor hiccups scattered across the code that make me think you are new to libgdx (nothing wrong with that, of course):
I can quickly make these changes myself if you want. Finally I'd like to know @siondream 's opinion. :) |
It would be nice if you make those changes. I think there are a lot of things we can do to improve this implementation (make it more cache frendly, add some other branch/decorator types, allow scripting and asynchronous...). |
A Wiki page would be nice. Well, more than nice, actually. Essential. |
@implicit-invocation |
@implicit-invocation and everybody else interested in For the subsequent release I'd like to improve the text formalism supported by the parser.
Despite being more verbose it is much more powerful and expressive because it can easily support node-specific parameters. Also, libgdx already provides minimal-json capabilities. Example: Limit decorator with count = 3
Also I'd like to support a behavior tree library containing the archetypes for all the behavior trees loaded so far. Pseudo-code:
Example 1: Include task
Example 2: IncludeOnDemand decorator
What do you think? |
Hmmm... probably a XML format would be a better fit.
|
I've just sent the CLA, my printer is out of ink since forever. About your idea, I totally agree with the parameter part, the clone part, the include part and the lazy part. About the definition file format, I prefer JSON over XML, and a conventional indent-based over JSON.
Just my 2 cent though. |
Merged, thanks :) |
@implicit-invocation |
I sent you an email |
No description provided.