Unity Polygon Map Generator by harmjs - 1

Procedural

A procedural polygonal map generator built in Unity.

Unknown VersionUnknown LicenseUpdated 74 days agoCreated on October 2nd, 2019
Go to source

unity-polygon-map-generator

Summary

A Untiy Demo for a procedural polygonal map generator.

Generated Map

Inspired by Amit Patel’s guide to polygonal map generation. Uses Triangle.Net for Delauny triangulations, and Gregory Schlomoff’s implementation a Poisson-disc sampling for initial vertex positions. Uses triangle centroids for corners.

Using Sebastian Lague’s implementation of Perlin Noise, each face is provided a value from 0 to 1, with a threshold value determining whether or not each face becomes a wall.

Generator Inspector

For another time

  • Add additional was of generation corners (circumcenter, incenter, random);
  • Add connected rooms, enemies, loot.
Show all projects by harmjs