• Register
Forum Thread
  Posts  
I very much underestimated the complexity of Top Down Roguelike Level Generators (Forums : Development Banter : I very much underestimated the complexity of Top Down Roguelike Level Generators) Post Reply
Thread Options
Dec 20 2023 Anchor

It seems like something you can easily Google, YouTube or ChatGPT, but good lord I just spent the last 4 days trying to put together a level generator for a Top Down Roguelike game I'm making (because that's what the world needs... more Roguelikes... I like them okay! *upsidedown smiley)

The kind of level generator I wanted was similar to Mana Spark. Really simple premade rooms that are connected together with a starting room, ending room and power up rooms - each room having up to 4 doors top, bottom, left and right.

Sounds simple, right?

A more capable coder would've bashed this out in a day, but as a designer, I struggled with the following:

  1. Spawning rooms with doors that don't connect to an adjacent room without a door on its respective side
    1. This is so that rooms with doors don't directly lead to a wall...
  2. Sealing any open doors with additional rooms after the level has been generated
    1. This is so that any rooms around the edges of the level that have doors always lead to a room


I've managed to get a scalable system working (images below - red doors are level exits). Code and setup are god awful...
The next thing I want to do is have rooms that vary in size. It's going to be a pain in the tush so I think I'll save that headache for another day.

Anyway, that's enough talking from me... Just wanted to rant a bit.

Screenshot 2023 12 20 at 22 49 2

Screenshot 2023 12 20 at 22 50 3

Screenshot 2023 12 20 at 22 51 3

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.