Spodii / netgore

Cross platform online rpg engine using C# and SFML
http://www.netgore.com/
40 stars 16 forks source link

Create more default AI behaviours #346

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'd like to at least implement a 'WanderAI' for the next release; the current 
one is not suitable for anything but 'FREE FOR ALL' attacking mobs. 

Any insight on other AIs we may need? 

Original issue reported on code.google.com by hilts.va...@gmail.com on 10 Feb 2013 at 11:01

GoogleCodeExporter commented 9 years ago
I think the most useful thing would be to have a simple interface to 
pathfinding AI. From there, the rest is pretty easy to create.

Original comment by Spodiii on 11 Feb 2013 at 3:07

GoogleCodeExporter commented 9 years ago
My concern is the cost of path finding on the server .

Original comment by hilts.va...@gmail.com on 11 Feb 2013 at 3:18

GoogleCodeExporter commented 9 years ago
It really depends on the implementation. The only real complication is the lack 
of tile-based collision. But you can easily do A* at a 16x16 tile resolution, 
and the cost should be quite low. You just have to make sure you cache the path 
for a second or two instead of recomputing it every frame.

Original comment by Spodiii on 11 Feb 2013 at 3:23