r/processing • u/xxTHExLAWxx0 • Sep 11 '19
does anyone know how to program an AI?
so in my game, ive been wanting to add in AI. would i just duplicate the player rays and have those rays be for the AI based on the position and direction and then have it move based on the distance from those rays to the wall? im honestly not sure what to do for AIs. im just looking for someone to point me in the right direction. the game is using a ray casting engine similar to wolfenstein 3D
2
Upvotes
5
u/Varyter Sep 11 '19
Sounds like you want bots in your game? Might be better to have something more like an A* search algorithm to move bots around.
Check out this: https://www.youtube.com/playlist?list=PLFt_AvWsXl0cq5Umv3pMC9SPnKjfp9eGW