Dungeonator
1.0.0
a dungeon generator library
|
code pulling together all the parts to generate the dungeon More...
#include "grid.h"
#include "rooms.h"
#include "maze.h"
#include "connectors.h"
#include "dead_ends.h"
Go to the source code of this file.
Functions | |
bool | generateDungeon (Grid *grid, int width, int height, int placeTries, int additionalRoomSize) |
code pulling together all the parts to generate the dungeon
bool generateDungeon | ( | Grid * | grid, |
int | width, | ||
int | height, | ||
int | placeTries, | ||
int | additionalRoomSize | ||
) |
generate a dungeon
[out] | grid | the grid to output the dungeon to |
[in] | width | the width of the dungeon |
[in] | height | the height of the dungeon |
[in] | placeTries | the number of times to attempt to place rooms - this can be thought of as the density of rooms |
[in] | additionalRoomSize | the amount of size to add to the room (3 + additional) - larger means bigger rooms |