May 19th: Destinations

The path building seems pretty good now. There’s a slight flaw in that when walking off a ground surface it will choose the tile directly in front of it, which involves stopping its falling motion and then running again once it lands. I think I can correct for this by changing the distance calculations so it counts vertical distance a lot less than it does horizontal distance, or by properly computing the total distance instead of using manhattan distance (x2 – x1 + y2 – y1).

Here’s what it looks like right now:Pathfinding05

Advertisements

About problemmachine

What is the nature of your problem? Can we modify the nature of your problem? Can your problem be touched? Eaten? May we eat your problem for you? May we eat your soul for you? Would you like a replacement problem? We make problems. We eat souls. We crap solutions. We are Problem Machine.
This entry was posted in Daily Update, Programming. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s