Attacked From All Sides
It’s taken a bit longer to write this post than I initially anticipated, but I have a pretty good excuse: My wife and I welcomed our daughter Guinevere Katherine into the world on March 22nd. It’s been a bit of a whirlwind around here ever since!
As I mentioned last time, enemies are next on the agenda. While writing enemy AI on a spherical world is mostly the same as it would be on a flat plane, the biggest difference is determining where the player is and then finding the shortest path to him. Since the planets in our game aren’t going to have any obstacles (at least, not yet), all enemies simply need a direct path to the player. But how can you get a straight path on a sphere?






