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

- Basic enemy AI/Behavior #12

Closed
Tracked by #10
odecay opened this issue Jun 26, 2022 · 5 comments
Closed
Tracked by #10

- Basic enemy AI/Behavior #12

odecay opened this issue Jun 26, 2022 · 5 comments
Assignees
Labels
help wanted It would be great if somebody could help out with this one!
Milestone

Comments

@odecay
Copy link
Collaborator

odecay commented Jun 26, 2022

Enemies need to move + attack/interact with the player.
Might consist of pathfinding and an action queue for each enemy.

further reading required
https://github.com/zkat/big-brain - an AI plugin for bevy. I have not yet assessed it for our use case nor used it in any other projects but it seems like reasonable prior art to draw from.

@odecay odecay mentioned this issue Jun 26, 2022
4 tasks
@erlend-sh
Copy link
Member

erlend-sh commented Jun 27, 2022

Three other AI library candidates:
https://github.com/PsichiX/emergent
https://github.com/ethz-gtc/npc-engine
https://github.com/Sollimann/bonsai

@erlend-sh erlend-sh added the help wanted It would be great if somebody could help out with this one! label Jun 27, 2022
@erlend-sh erlend-sh added this to the v0.0.2 milestone Jun 28, 2022
@odecay odecay self-assigned this Jun 29, 2022
@erlend-sh
Copy link
Member

Worth noting that the libraries we’ve listed aren’t really relevant to basic AI. This issue will be considered resolved by a very simple ‘go to player position and attack’ system.

@odecay
Copy link
Collaborator Author

odecay commented Jul 6, 2022

The beginnings of this are in as of f16b7bb. It has implications for the player, since now they can be attacked and the players state and player controller dont account for any hit state currently. Will get to those next.

edit: added some checks in dcd2471

@odecay
Copy link
Collaborator Author

odecay commented Jul 6, 2022

This needs some checks to keep the enemies in bounds, right now they can walk out of map if player happens to be close to edge.

edit: done

@odecay
Copy link
Collaborator Author

odecay commented Jul 6, 2022

I think I'm calling this closed for now but there are still improvements to be done. In #29 targeting system will need to be updated to better account for more than 1 player. This has also brought to light the necessity of #53

@odecay odecay closed this as completed Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted It would be great if somebody could help out with this one!
Projects
None yet
Development

No branches or pull requests

2 participants