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

Improve AI and makes states more transparent #462

Open
tonihele opened this issue Jul 10, 2024 · 0 comments
Open

Improve AI and makes states more transparent #462

tonihele opened this issue Jul 10, 2024 · 0 comments

Comments

@tonihele
Copy link
Owner

Improve AI and makes states more transparent. Currently we are just using a simple state machine and too few states. It is often cumbersome to figure out what a creature is actually doing. Like the state WORK, the creature can be working or traveling to work, there is no distinction there. And complex behaviors like being jailed, researching or training are hard to model with our current system. Not impossible but messy. Those behaviors have kinda sub states, more naturally expressed in another way.

I suggest we move to use behavior trees. We can even have some simple editor to script these out. And have separate ones for workers and different creature types.

We are currently using libgdx-ai, I suppose it is a decent choice. If we want something else, that is of course allowed too. See https://github.com/libgdx/gdx-ai/wiki/Behavior-Trees

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

No branches or pull requests

1 participant