Generates random tile-based paths with a simple novel algorithm
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
.gitignore Initial commit Apr 28, 2018
LICENSE.txt Add LICENSE.txt and README.md Apr 28, 2018
README.md Add LICENSE.txt and README.md Apr 28, 2018
demo.html Minor change Apr 28, 2018
demo.ts Minor change Apr 28, 2018
floor_tiles.png Add demo code Apr 28, 2018
grass.png Pretty up the grass a bit Apr 28, 2018
main.ts Cleanup Apr 28, 2018
sign.png Add demo code Apr 28, 2018
tsconfig.json Initial commit Apr 28, 2018

README.md

Chiseled Random Paths

This code generates a random path between a given set of points.

An explanation and demo can be found at https://www.boristhebrave.com/2018/04/28/random-paths-via-chiseling/.

Usage

See the usage in demo.ts, or the comments. The two functions of interest are randomPath and randomConnectedSet, which find a path connecting specific points, and a path of a given size, respectively.

Copyright

Code is covered by the MIT license.

The images are provided by fictionaldogs on the ZFGC forums. http://zfgc.com/forum/index.php?topic=41500.0 "If anybody wants to use anything, feel free to do so (with credit given if it is made outside of zfgc.com of course)."