Graph Node Tool
The main goal of this project is to be used for fast prototype games that require a Graph Node.
Currently, you can:
- Set up the total number of nodes of the graph
- Set up the number of Starting Nodes - this will determine the amount of paths to the nearest end node available
- Set up the number of Ending Nodes
- The size of the world, in a rectangular shape
- The Size of the nodes, also in a rectangular shape
- Seeds, in case you need to create the same world multiple times
- Set up the direction in which the path will follow from Start to End nodes:
- Bottom -> Top or Left -> Right
- Set up the number of connections between the lanes created from the starting nodes - those are created based on the proximity of the nodes between two paths
- Set up the algorithm to create the graph that connects everything:
- Distance to End node
- Axis X and Y
- You can create a parallel batch for determined settings that run in parallel. It helps to generate the map faster in case your setup takes a long time to be created.
- Debug information:
- Display Nodes discarded because they are out of bounds
- Display Nodes discarded due to overlapping
See a simple example below:
You can find the code on GitHub and its using Unity
Leave a comment
Log in with itch.io to leave a comment.