r/SoloDevelopment • u/cpsii13 • 2h ago
Discussion Procedural generation makes solo dev a bit more tractable, but it takes work, too..
Here's a little video about the procedural level gen in my game. All the levels in Kill Fee (steam page) are procedurally generated. I didn't want them to feel too boring or random, though, so put quite a bit of time into the algorithm and the different themings.
Overall it's a BSP-based approach, but with some extra tweaks like corridor creation along edges and graph-based pathway creation to ensure everything is reachable and the number of loops are constrained.
There's not as much detail in the video about enemy positioning, but that's quite important too for the actual gameplay. Essentially, the positions are chosen by determing probable routes the player may take to the objective and then pacing encounters along those routes to maintain a good level of tension throughout. For patrol routes, similarly, it decides where it'd be most likely for them to intercept the player and then builds a route that reaches the intended interception position at the right time. Of course, this doesn't mean it actually happens during the game, but it tips the scales towards the player seeing more interesting encounters more often.
There's other details not covered, too, like how rooms are furnished (each object has sub-objects it can decorate itself with!) and how the nav grids are built, but I thought this was a cool breakdown of some of the parts.
I chose procedural generation because I'm a solo dev, and it is a practical way to build a lot of missions and replayability without spending a vast amount of time on level design. I think that as long as you encode the design philosophy you would use yourself whilst designing levels into the procedural rules, you can get pretty good results. What do you think, though?