Syndaryl / DFRPGRandomDungeonGenerator

A HTML/CSS/JavaScript based random dungeon generator for GURPS. Eventual goals are to not only produce a map, but also populate the rooms with descriptions and challenges. Game statistics will be for the DFRPG / GURPS 4e.
Other
35 stars 13 forks source link

Doors between rooms are not "shared" #55

Open Syndaryl opened 6 years ago

Syndaryl commented 6 years ago

There's two related problems here:

This results in a) a funny number of doors that b) are inevitably not completely described

EDIT:

Syndaryl commented 6 years ago

Probably related to #61 - the solution for one should help with the other anyways.

Syndaryl commented 6 years ago

Additional issue is that the two rooms may knock a door through the same grid position

Syndaryl commented 6 years ago

The many door issues I think are best handled by pulling door code out of the room generation. Have a door pass after creating all the rooms. Create a central door registry to check against to prevent "overlap" as part of this.