# dungeon generator ###### tags: `gameMaking` - ## room 1. make different size of rooms - room size should correspond to normal distribution 2. spread the rooms in a range - random seperate and judge overlap or not. - use physical engine? - ## tunnel 1. connect the rooms by distance :::warning still have to resolve tunnel overlaping problem ::: 2. remove most of the connection(just make sure the room still connect all together) - find the import path(which remove will broke the connection of the whole dungeon) 3. add some connection back 4. if some tunnel is too long, add some more rooms random on the path. - can overlap tunnel and the rooms - ## decorate 1. decide the type of the room!!!(some treasure room, some boss room, and maybe some event room...) - decide this base on position and num of tunnel 2. wall of rooms 3. add some platform 4. add some object base on room type - ## ## reference https://www.gamedeveloper.com/author/a-adonaac