Twistedsnail on DeviantArthttp://creativecommons.org/licenses/by-nc-nd/3.0/https://www.deviantart.com/twistedsnail/art/Pathfinding-text-330613526Twistedsnail

Deviation Actions

Twistedsnail's avatar

Pathfinding text

By
Published:
837 Views

Description

This was a test at making a pathfinder!

Looked up a*, got confused and made my own (not sure how much is subliminally taken from what I read) but I'm pretty damn happy with it.

Instructions (cause the in game ones suck):

First screen: paint the squares with the mouse: dark is the path/room/emptiness that can be moved through, light is the solid walls and cannot be calculated. Click done when you are happy with the map.

Next, click to place the green and red squares which represent the start and end point (so finder and target).

Then if there is a path it will display the shortest as a blue trail, click to restart. If no path is available then it just goes back to the first screen.

Next I will probably add in a sort of area/threat detector that will alter the paths to the shortest and safest path.
I hope to be able to use this in games and shit.
Image size
400x450px 3.52 KB
Comments5
Join the community to add your comment. Already a deviant? Log In
absolute8's avatar