Work: Tool
-------------------------------------------------------------------------
I recently got into a game called Slay the Spire and I wondered how they did their map generation, so one weekend I sat down and tried to make a tool that makes similar maps in Unity.
Inspiration for my map generation rules
Github: Slay the spire map maker
When generating the roads (multi colored lines), there are two important rules, that roads can not cross each other (except at nodes) and if multiple roads go into one node that multiple unique roads should go out of this node too.
Nodes on the map are representations of different things that can happen during your adventure. The main rules regarding the placement is that you should unlock more difficult node types higher up and some levels should only have one type of node.
To make it possible to easily swap the spawning behavior of the map generator I stored all the instructions on a scriptable object. In these scriptable objects you can decide which type of nodes that can spawn and at which level that they can start spawn but also if any floor level should just be one node type and if any floor level do not a type of node.