Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    2
  • comments
    3
  • views
    3964

The Dawn Age - Dungeons!

Sign in to follow this  
Cerd

889 views

[color=rgb(51,51,51)][font=Georgia]


Hi, I'm Cassio Eduardo Ferreira da Cunha a 21 years old programmer, game designer and founder of this company(Dumont Studios), based in Brazil. This is my second blog post, if you want to know more visit my blog: http://www.dumontstudios.com

[/font][/color]
[color=rgb(51,51,51)][font=Georgia]


Yesterday I finished the dungeon generation. I've never worked on a dungeon generation before, so I had to think for a while and write down what I needed. It ended up working perfectly and have a lot of parameters that I can change to customize the dungeon.

[/font][/color]
[color=rgb(51,51,51)][font=Georgia]


Editor-Screenshot-1.png
This is a "mini-map" view of the dungeon.
Blue - Walkable.
Yellow - Door.
Red - Wall.

[/font][/color]
[color=rgb(51,51,51)][font=Georgia]


There are 4 types of areas: corridors, rooms, locked rooms and secret rooms. The secret room don't have doors, you may have to break the wall(if there is a crack) or pull a lever.

[/font][/color]
[color=rgb(51,51,51)][font=Georgia]


Editor-Screenshot-5-1024x576.png
This is the dungeon generated above. The environment is placeholder, but we will get there eventually.

[/font][/color]
[color=rgb(51,51,51)][font=Georgia]


Next week, I will focus on core gameplay mechanics and pathfinding. Bye.

[/font][/color]
Sign in to follow this  


2 Comments


Recommended Comments

Welcome to GameDev.Net!

 

What sort of approach have you taken to your dungeon generation?

Share this comment


Link to comment

Thanks!

 

I use a 2D matrix to store the data(25x25 in this case). The algorithm is quite simple:


1 - Generate room at any position and add it to the rooms list
2 - Random a room or corridor from the list(in my case i don't pick locked or secret rooms. Only corridors and rooms)
3 - Pick a wall from the randomed area on step 2(do a few checks) and put a door
4 - Generate a room or corridor for the door(do a few checks)
5 - Place the generated room or corridor on the map and on their respective list
(2, 3, 4 and 5 are inside a loop.)

Of course this is a simplification, but this is the base of the current algorithm. The generation of chests, levers, monsters and other stuff should be easy after this.

This is how the matrix look like:
attachment.php?attachmentid=49320&d=1365
* - Empty space
0 - Wall
1 - Walkable
3 - Door
4 - Locked Door
5 - Secred Door/Wall

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!