Why and how did I start this project?
At my study we had 10 options to choose from, and we had to pick one. I picked the Dungeon Generator assignment. Why did I pick this? Because I never made a dungeon generator before, and it seemed interesting to me to make a program that creates a level.
What did I work on?
A randomly generated dungeon!
- I used a design pattern called Model-View-Controller.
- I created my own grid connectivity algorithm, so that rooms in a grid get connected trough customizable tunnels.
- I used the ScriptableObject class for a dungeon playground, so you can set the width, height and seed of the dungeon generator and some properties about room connectivity.
- I made a flexible grid to work with, and some grid based classes that make it easier to get certain tiles in the grid, like getting a list of tile neighbours.
My first version of the Dungeon Generator
Customizable
What did I learn?
I learned to make a grid connectivity algorithm. The algorithm connects rooms in a grid that are not connected. And it was very helpfull to make some flexible grid based classes, so I didn't had to copy-paste my code.