トピック
MSWS coolestkid123

Tracking AI

Is there a better tracking code?
0そうだね
プレイ済み
返信[1]
親投稿
raimondz raimondxz
You should try to search A* on Google. That's a good algorithm to get the path between 2 point. I don't know what kind of game are you doing but it work for both rts and platform games.
1そうだね
プレイ済み
返信[2]
親投稿
MSWS coolestkid123
Thanks, but it's too complicated for BASIC.
0そうだね
プレイ済み
返信[3]
親投稿
こうやま kouyama1435
Instead of 190 to 194,we can write below: DRGX=DRGX+((DRGX<MANX)-(DRGX>MANX))*DPSD DRGY=DRGY+((DRGY<MANY)-(DRGY>MANY))*DPSD
0そうだね
未プレイ
返信[4]
親投稿
Ricardo Caffeine305
Minimax, maybe? depending on you search tree it might be quite resource-intensive but it works good with low-branching, big-depth trees. You might also use αβ-pruning to improve the seach.
0そうだね
プレイ済み