Hey all, I am currently making a dungeon crawler and thought I’d try out using PGC (procedurally generated content) dungeon and I am having a bit of an issue on some logic. The system I plan on using revolves around rooms,junctions,and connections(halls). The objects are classified as below:
Rooms(up to 4 connections): Connects to a connection(hall)
Connections(halls)(2 total connections): Connects to a junction or room
Junction(upto 4 connections): Connects to connections(hall)
My current issue is I am not sure how to approach the logic to stop connections from running over each other. I thought about checking the space the new tile is going to be place in but I found several times that you could tell 2-3 placements prior the collision is going to happen. How to get my code to see this is my current obstacle.
Could anyone offer up some advice?
Here is a webplayer link to the current project (has since been updated to reflect changes to code): https://dl.dropboxusercontent.com/u/142894708/Gen/Gen.html