Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
glouw committed Feb 17, 2018
1 parent a4c4ecb commit 8a5e9da
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ Delaunay Triangulation Dungeon Generation.

Use case:

#include "Map.h"

int main()
{
srand(time(0));
const Map map = mgen(80, 120, 10, 20 * (1 + rand() % 4));
mprint(map);
mclose(map);
const Map map = xmgen(80, 120, 10, 40);
xmprint(map);
xmclose(map);
}

Where the map generation function is defined as:
Expand Down

0 comments on commit 8a5e9da

Please sign in to comment.