• Stars
    star
    227
  • Rank 174,922 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Procedural map generator inspired by Slay the Spire.

stsmapgen

The map generator inspired by Slay the Spire.

I do not authorize the use of anything generated by this project for the selling of NFTs.

Theory

  1. Set the start point and the end point.
  2. Prepare points with Poisson disk sampling.
  3. Generate links with Delaunay triangulation.
  4. Find the path from the start point to the end point with A*.
  5. Exclude random points on the path.
  6. Repeat steps 4 and 5 several times.
  7. Complete!

License

stsmapgen is licensed under the MIT license. See the LICENSE for more information.

Libraries: