Extended enemy AI using behavioural tree #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The enemies are red when they are idle; they turn yellow when you enter a certain range and they start following you; the enemy stops following you when you exit the specific range; when they get close enough they turn green, which means that they are shooting at you.
You can shoot at the enemies as well by left clicking. Their colour turns blue when their health reaches a certain threshold and they run to take cover.
The shooting is not entirely implemented, you can't see the enemies or the player attacking, but the purpose of the project is to make the enemy follow, shoot at the player and take cover when their health is too low.
The demo video is bellow:
https://user-images.githubusercontent.com/69145969/154525211-b4e27a74-04b9-468f-96e2-fdbea90c2569.mp4