Sign in to follow this  

Looking for an AI library or help on which design pattern to use

This topic is 1448 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all I'm making a game that needs AI that is similar to an RTS AI( starcraft, warcraft, etc. ) I am building the game in monogame and was wondering if anyone knew of a good AI library I could use or where to start implementing my own. What design pattern do I use?

Share this post


Link to post
Share on other sites

I don't think you are going to find an AI library that can do what you want. There are libraries that do things like pathfinding, but when it comes to deciding whether to train another soldier or save a little money to get a tank, you are going to have to roll your own.

 

Game AI is not a small field, so be ready to spend some time learning about it. If you want to get started, there are good suggestions in the sticky at the top of this forum: http://www.gamedev.net/topic/592473-recommended-ai-books-and-sites/

Share this post


Link to post
Share on other sites

Preferably in c#, I think I need a decision tree, pathfinding, and steering behaviours.

I need the AI to decide what it needs to do next, then find a path to its destination then steering behaviour to make it look lifelike.

Share this post


Link to post
Share on other sites

Typically the AI unit in RTS does not need too deep of planning since its lifespan is relatively short. Look into utility agent. Define all tasks the unit can perform (e.g. gather resource, attack enemy, heal teammate, etc), and schedule each and every available task to evaluate its own utility score on the same interval. The one that returns the highest utility score is the task the unit to take.

Share this post


Link to post
Share on other sites
Sign in to follow this