I started to create a tank game with tile maps, but I am at a dead end as to how to get the tanks AI to chase a specific tank. The tanks have to travel up to many times the distances greater then the screen width, with only a basic random tile wall(s). The tiles are 32x32 and the tank is 32 by 32 and moves from 0.0 pixels to 2.0 max speed in pixels, in increments of 0.2, each wall is a block and ocupies a tile size. the tank rotates in degrees in any direction. I have figured everything out except the computer AI for the tanks. does any body have any sample code I could used to figure this thing out or can someone direct me to where I could find relevant information. I have never used anything other than random numbers for AI. Any help would be greatly appreciated. Thanks in Advance.
|