Update Quick Main Paths Setup

Raphtalia 2024-08-20 16:49:44 +00:00
parent f157cc89e5
commit aa789c4510
1 changed files with 5 additions and 3 deletions

@ -45,11 +45,13 @@ The starting index is the first node whose position is greater than the `MainRoo
> **:warning: WARNING: :warning:** This behaviour is perfectly safe to use **IF** the node's positions are no where near the `MainRoomTilePrefab's` predicated depth or you don't use nodes besides the start and end node. This behaviour is not safe to use and can lead to funky and broken dungeon generations **IF** the node's position are near the `MainRoomTilePrefab's` depth. In these situations, I recommend using `Copy From Node List` instead. > **:warning: WARNING: :warning:** This behaviour is perfectly safe to use **IF** the node's positions are no where near the `MainRoomTilePrefab's` predicated depth or you don't use nodes besides the start and end node. This behaviour is not safe to use and can lead to funky and broken dungeon generations **IF** the node's position are near the `MainRoomTilePrefab's` depth. In these situations, I recommend using `Copy From Node List` instead.
![](https://i.imgur.com/sRnNw7I.png) | Main Path Length 10 (Good) | Main Path Length 5 (Scary) |
|---|---|
| ![](https://i.imgur.com/uG7RgWs.png) | ![](https://i.imgur.com/hxzikww.png) |
As you can see from the picture above, the `0.15` node tile is replicated onto the alternate main path as it's the first node whose position is greater than the `MainRoomTilePrefab's` depth of `0.1`. In the picture to the left, the `0.15` node tile is the first node replicated onto the alternate main path as it's the first node whose position is greater than the `MainRoomTilePrefab's` depth of `0.1`.
If the main path's length was instead 5, then the first tile after the start tile would have a depth of `0.2`. This would lead to the node tile generating first before the `MainRoomTilePrefab`. As such, the node will not be replicated for the alternate main path. More scary, since the start tile doesn't follow with the `MainRoomTilePrefab`, the dungeon generation may completely break both code-wise and/or visual-wise. See the Copy From Node List section below for how you could address this. In the picture to the right, you can see the dangers if the node's positions are near the `MainRoomTilePrefab's` depth. Since the main path's length is 5, the first tile after the start tile would have a depth of `0.2`. This would lead to the node tile generating first before the `MainRoomTilePrefab`. As such, the `0.15` node will not be replicated for the alternate main path. More scary, since the start tile doesn't follow with the `MainRoomTilePrefab`, the dungeon generation may completely break both code-wise and/or visual-wise. See the Copy From Node List section below for how you could address this.
### Copy From Node List ### Copy From Node List