|
• mm
I would suggest C++ or Visual Basic if you want to learn AI for games. To learn from, I highly recommend 'Gamemaker' (gamemaker.nl. free, but all features needs only a lil money.) Before you go onto programming AI, first see how to make objects do things when you press a button, for example..
when I press up, make the character go up
then you'll be able to do more complex stuff like
//360 movement
x=x+speed*cos(degtorad(direction));
y=y-speed*sin(degtorad(direction));
and then after seeing how the language works, all you have to do for a 'grunt' ai is when something happens, do something, such as for dodging a bullet, i would use the above code, except change direction into the bullets direction and add 90 degrees (so it strafes)
|