Dungeonator  1.0.0
a dungeon generator library
Functions
generate.h File Reference

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)
 

Detailed Description

code pulling together all the parts to generate the dungeon

Function Documentation

◆ generateDungeon()

bool generateDungeon ( Grid grid,
int  width,
int  height,
int  placeTries,
int  additionalRoomSize 
)

generate a dungeon

Parameters
[out]gridthe grid to output the dungeon to
[in]widththe width of the dungeon
[in]heightthe height of the dungeon
[in]placeTriesthe number of times to attempt to place rooms - this can be thought of as the density of rooms
[in]additionalRoomSizethe amount of size to add to the room (3 + additional) - larger means bigger rooms
Returns
whether the generation was successful