Page 1 of 1

AI tutorial?

Posted: Sun May 13, 2012 5:34 am
by Indie Tom
Does anyone know any tutorial that's about how to program a AI in c++ and sdl?

Re: AI tutorial?

Posted: Sun May 13, 2012 5:46 am
by OmenFelix
Indie Tom wrote:Does anyone know any tutorial that's about how to program a AI in c++ and sdl?
You might want to check out A* Pathfinding: http://en.wikipedia.org/wiki/A*_search_algorithm

There's loads of pathfinding tutorials on YouTube. In future :google: .

If pathfinding is not what you seek, then it's just common logic of which you must use. ;)

Re: AI tutorial?

Posted: Sun May 13, 2012 6:50 am
by blackball2186
The easiest way to think about AI is to figure out what behavior you want your enemy to have , and turn it into a math problem , you just have to make sure you take into consideration all the proper variables. it's easy to explain but hard fabricate . Hope you stayed awake during your math classes! :mrgreen: