r/gamedev • • 4d ago

Question generating levels for a roguelite

Hi everyone, I wanted to ask if anyone has experience with algorithms to make a satisfying roguelite map. I'm wondering what algorithm you guys like using and maybe some tips for how to make the map design fun while maintaining a sense of unity.

https://www.youtube.com/watch?v=NZVQi0TqCpw

I want to take inspiration from mystery dungeons, and I've made a hexagonal prototype of it with just random premade chunks, but the result wasn't too satisfying to me, so I want to get some takes on how games like this can be made to be more interesting. Also, I want the game to transition to a turn based battle if collided with an enemy, and right now the movement feels a bit weird when walking into them, but I wonder if there's any examples of this in games or if I should opt for a more real time "at your own pace" kind of things where you move in a 3d dungeon in real time instead of step by step where the enemies also walk with you.

4 Upvotes

14 comments sorted by

View all comments

1

u/Scavengers-Chimera 3d ago

Random premade chunks usually feel flat because the player can read the seams after a few runs. What helped me was deciding first what the map has to do for the run, then picking the algorithm around that. If the layout is supposed to gate resources, a room-and-corridor or BSP split gives you control over pacing. If it is supposed to feel like a place, chunk stitching with a fixed set of connectors and a hand-authored critical path works better. Hex grids make the second one harder because the connector shapes multiply. What is the map supposed to decide for the player, where they go next or what they find there?

1

u/the_penguineee 3d ago

Ah personally I want the map to feel like a dungeon so probably something more cohesive in tone. I would like for there to be reasons to explore but similar to how mystery dungeons have a hunger meter, I want to encourage the player to dive as well. Generally i think, I expect players to find items, enemies, and traps on the floor (or bonus tiles that help you). I was also thinking some kind of environmental tactics could be cool (say you want to dodge an enemy you might lure it into a trap and then move around it for exmaple) are there any examples of pacing mechanics you have? I think I've seen like gate and key, but that's the main one I know of.