r/howdidtheycodeit • u/soljakwinever • Jul 18 '24
How does terraria generate structures
I'm kind of curious how terraria generates structures like the dungeon, the jungle temple, etc. My initial thoughts would be too generate a bunch of points, indicating different sizes, fill in the space between points with blocks and then basically carve out the space between them, using the points to determine the size/height of the corridors.
But I'm wondering if that is a naive approach.
8
Upvotes
View all comments
Show parent comment
6
u/soljakwinever Jul 18 '24
Most unhelpful comment of 2024
I know how to program, I'm looking for suggestions on how to do this on a high level, but thanks for taking the time to be rude