I was doing some coding for my game recently, and I was wondering how you would going about doing procedural walls like shown in Software Inc. Currently, I have a system where you place a point in the world, that point is added to a list, walls are drawn between the points, and if the tiles (stationed between the world points) have the corresponding flag to them (!upwards, !downwards, !diagonal) then you may place the points. I was wondering 3 things.
-
How would I go about upgrading this system to include diagonal walls
-
How do I check if one wall runs into the other wall
-
How would I go about finding the area between the walls and trigger the corresponding indoors flags?
Thank you for your time