Today I’ve expanded on the Procedural systems and added a Wall generator to interpret output of the House Generator and turn the data into a proper room.
I started by making some basic walls, and then a 1×1 room that I’d try to replicate in code.
Then after I was able to replicate the 1×1 I made a 2×2.
![](https://trewest.dev/blog/wp-content/uploads/2022/12/image-25.png)
![](https://trewest.dev/blog/wp-content/uploads/2022/12/image-26.png)
And then I tried to make doors and ran into an issue I had predicted with my system.
![](https://trewest.dev/blog/wp-content/uploads/2022/12/image-29.png)
The doors push outwards instead of inwards. They have to or else they wont blend in with the other walls.
![](https://trewest.dev/blog/wp-content/uploads/2022/12/image-27.png)
This here was my goal, and I was able to achieve it by adding a slight offset in the opposite direction of where the wall
![](https://trewest.dev/blog/wp-content/uploads/2022/12/image-28.png)
And now I can generate some neat doorways like this!