makeopensource / Classic-RPG

A classic role-playing game with an engine.
GNU General Public License v3.0
7 stars 19 forks source link

[Feature Request] Enemy Tracking #64

Closed russella26 closed 2 years ago

russella26 commented 2 years ago

Using either euclidean distance or BFS (whichever you deem more efficient) create a function for enemies to find and navigate to the nearest player

Dylanz5 commented 2 years ago

methods in Tile like isVisible, getAdjacent, and hasPlayer methods in Enemy like findClosestPlayer