npm.io
0.1.0 • Published 9 years ago

dungeons-generator

Licence
ISC
Version
0.1.0
Deps
0
Vulns
0
Weekly
0

Dungeons Generator

Dungeon generator library

Usage

npm install --save dungeons-generator
const { Dungeon } = require('dungeons-generator');

const size = 6; // 6 rooms of radius
const percent = 50; // 50% chance of having a door (4 times per room)
const dungeon = new Dungeon('my-dungeon', size, percent);

Documentation

Documentation is available in development environment

make doc

Demo

Demo is available in development environment

make demo