Learning how to program/code video games step by step in Java. Platformers, Shooters, Turn Based Strategy, Real Time Strategy.
donderdag 31 maart 2011
Simple random obstacle avoidance method.
I found this trick while looking through books on google books. If you can not get past a obstacle then place the game character on a random location next to its former location. If you repeat this process then the character will eventually bypass the obstacle. It can take quite a number of moves until the obstacle is bypassed.