Room Editor
This is a prototype for a room editor feature with some interesting rules and features, developed in Unity with C#.
I made a custom grid system which served as the foundation for the placement mechanic.
Some Features :
- Different room types
- Room placement
- A room can't be placed outside the grid system.
- A room can't be placed directly on another room.
- A room can only be placed if there is a possible corridor connection between it and an existing room.
- Corridor system
- If a room is place right below an existing room, we can see a corridor connection that automatically get's placed.
- The corridor also expands/extends based on the distance of the room intended to be placed.
- For rooms placed side by side, the corridor's size increases to 1x2. This is because the upper tiles are intended to be used as walls as this is a top down system.
- Also, when rooms gets deleted, all connecting corridors is also removed.
You can select various predefined room sizes as shown below.
There are some rules in place for the placement of the rooms :
There are various rules in place for the corridors :