OndrejNepozitek / Edgar-Unity

Unity Procedural Level Generator
https://ondrejnepozitek.github.io/Edgar-Unity/docs/introduction
MIT License
817 stars 70 forks source link

Rule tiles that are aware of individual rooms #5

Closed OndrejNepozitek closed 4 years ago

OndrejNepozitek commented 5 years ago

If we want to use a rule tile e.g. for walls, we specify how should the tile look depending on neighbouring tiles. Hovewer, if two walls from different rooms are parallel and right next to each other, the walls are strangely connected to the other room (see the attached image).

image

Possible solution: Add an option to differentiate between tiles from the current room and tiles from a different room. In that case, a dungeon generator would have to provide a method to check whether two tiles belong to the same or to different rooms.

OndrejNepozitek commented 4 years ago

Can be solved with custom rule tiles.