Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

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

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
4 replies to this topic

#1 Apox206   Members   

124
Like
0Likes
Like

Posted 28 January 2014 - 11:46 AM

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?



#2 Álvaro   Members   

20932
Like
2Likes
Like

Posted 28 January 2014 - 12:22 PM

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/



#3 Totologic   Members   

225
Like
0Likes
Like

Posted 28 January 2014 - 12:50 PM

Language ? C++, C#, Java, Actionscript ... ?

 

Use ? pathfinding, behavior, data structure... ?


My blog about games, AI...

http://totologic.blogspot.com/


#4 Apox206   Members   

124
Like
0Likes
Like

Posted 28 January 2014 - 01:06 PM

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.



#5 rjuang   Members   

137
Like
1Likes
Like

Posted 29 January 2014 - 05:21 PM

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.






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.