The MASM Forum

General => The Campus => Topic started by: daydreamer on October 11, 2020, 02:36:55 AM

Title: pathfinding problem
Post by: daydreamer on October 11, 2020, 02:36:55 AM
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?
Title: Re: pathfinding problem
Post by: nidud on October 13, 2020, 08:43:47 PM
deleted
Title: Re: pathfinding problem
Post by: daydreamer on October 13, 2020, 11:46:30 PM
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