OSM - Roguelike Dungeon Generator
Author: | Rob Westbrook
|
Submitted: | 11th November, 2009
|
Favourites: | 0 |
Genre: | Engine
| Downloads: | 668
|
Rated: |
|
|
Edited By Rob Westbrook on 12/21/2009
Edited By Rob Westbrook on 11/13/2009
Edited By Rob Westbrook on 11/11/2009
This is an example of an extremely bare-bones Roguelike dungeon generator. The source is included since I'm nice and it's Open Source Month
It works in a fairly simple way. For each room the generator wants to build, it first scans the room's area to check if it completely falls in an area of dirt. If it does, it loops through again, this time drawing the room itself. If not, it looks for another space. It does this until either the total number of rooms is equal to a certain amount, or if the attempted rooms is equal to another amount (I've found that the number of desired rooms x 10 has a good balance of time vs number of good sized, well placed rooms). Then it drops in the up and down stairs.
After drawing the rooms, it loops through using the Advanced Pathfinding Object carving out corridors between rooms. It should work out that every room is reachable. After the corridors it adds walls around the outside of all room and corridor spaces.
It's also completely scalable. Tile size, number of rooms, min and max room size, frame size, all can be changed by changing Alt Values and graphics, with no changes to the code itself.
Overall it works out pretty nice for about a week's total programming, although it's obviously still missing a hell of a lot like doors, items, monsters, etc...
Hope you enjoy!
EDIT: You'll need the .NET 2.0 Framework to open both the .exe and the source!
Review This Download
http://www.mediafire.com/?znn0mlwyyt0 (1.13mb )
|
|
Is this worth a look? Let others know! Favourite
|