bradley-mcfadden / worms

A game where you play as a sandworm fighting for survival in the modern world.
MIT License
0 stars 0 forks source link

Redo enemy AI using GdQuest AI library #6

Open bradley-mcfadden opened 2 years ago

bradley-mcfadden commented 2 years ago

The GDQuest framework of steering, following, evading behaviours is far better than mine and would simplify the Enemy AI. Play around with the demos, and incorporate pathfinding nodes into the worm and the enemy AI.

bradley-mcfadden commented 2 years ago

This probably wouldn't work without significantly slowing down the library. Instead, I'll stick with my original FSM implementation for states, which should work better now that collision is fixed.

bradley-mcfadden commented 2 years ago

This might still be worth testing if agents with very irregular polygons can be added. Currently, there's a distance check between neighbours that just uses point distance and the circle's radius. Instead, a change could be made to use a raycast. That would probably allow it to work.