Hi anyone made 2d pathfinding before
current code enemy travels in labyrinth several squares until it get stuck in a corner
I use lots of .IFs for changing directions when hitting an non-empty square
I read up on pathfinding now,so trying a new start with some start POINT and end POINT and some check starting delta.x,delta.y
maybe pattern around current.xy POINT would be better way to base direction changing?
deleted
Quote from: nidud on October 13, 2020, 08:43:47 PM
There's a Direct2D Simple Path Animation Sample here:
http://masm32.com/board/index.php?topic=7000.msg96307#msg96307
Thanks,good for some fly around in circles :thumbsup:
But I am looking for finding a path thru point a to point b,in 2d grid filled with obstacles