I'm creating a game and need to create a random 2d map of a castle or a similar building. It should look like blueprints, i.e. shot from above and only lines are used.
I'm looking for some algorithm that does this. I'm not so interested in the code, but the algorithm itself. Where to start and how to fill the desired area?
A maze best describes a random 2D map of an internal structure. What you need is a maze generation algorithm. After implementing the basics you could add your own implementation of random "room" placement etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With