Slight modification of my path finding method, except this method is now modified to allow an arbitrary size grid to be instantiated. I invite you to open it up and fiddle with the code.
The agent is the cat creature, and hopefully my code is readable enough. Simply changing the SIZE variable at the top should be enough to get a feeling for different grid sizes.
[Please log in to post a comment]