Found a pretty cool way of adding intelligence to the enemies in my game. It's called behavior trees and engines like Unreal Engine provides them so I thought to give it a try.
Writing decision making logic with this approach has been fun, everything is super explicit and easy to read.
I hope you find this cool and interesting, if you want to see the code I wrote, just go here: https://github.com/MerliMejia/spacegu... and https://github.com/MerliMejia/spacegu...
#behaviortrees #C++ #gamedev