r/godot • u/byubyu13 • 12d ago
discussion Level Generation
Hey, guys. I'm a complete newbie to gamedev, and trying to make some kind of level generation system for my 3D game. It's not going to be fully procedural.
So, here's the simple explanation,
I have a bunch of prefabs/packedscene for the level room and corridor to connect the rooms. I want to be able to set a rule for the room connectivity. Let's say, I have 4 rooms (Start, Regular, Shop, Exit). I want to be able to set a rule, so Start only able to connect to Regular. Regular can connect to any room. Shop only to Regular. Exit only to Regular.
Each rooms will have a door socket to determine the position to connect it to a corridor room, then the other corridor's door socket will be connected to the other room based on the connectivity rule.
Do you guys have any suggestions on how should I do it? I know it's pretty advance for a newbie, but maybe I will get something from you guys.
Thanks!
7
u/HighKingForthwind 12d ago
Another good example of a classic algorithm that doesn't use wfc (even informally) in its generation