Skip to content
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

Behaviour trees #13

Merged
merged 9 commits into from
May 5, 2020
Merged

Behaviour trees #13

merged 9 commits into from
May 5, 2020

Conversation

oestrich
Copy link
Owner

@oestrich oestrich commented May 3, 2020

Let NPCs be run by behavior tree "AI."

  • Create a set of nodes that parses as a behavior tree
  • Load behavior for characters during world boot
  • Allow actions to be delayed
  • Set up actions to be more generic and used in commands/events

Work in progress

- Structs for types of nodes, selectors, condition, action
- Protocol for running each node, that handles the logic
- Test function to try things out and play around with the tree
Load a tree from data files when booting the world
@oestrich oestrich self-assigned this May 3, 2020
@oestrich oestrich marked this pull request as ready for review May 5, 2020 00:15
@oestrich oestrich merged commit 302d2c6 into master May 5, 2020
@oestrich oestrich deleted the behaviour-tree branch May 5, 2020 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant