Skip to content

semibran/dungeon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dungeon

Seedable roguelike dungeon generator

install

npm install dungeon

usage

const Dungeon = require('dungeon')

A Dungeon is a plain object with the fields width, height, rooms, mazes, and doors.

See test.js for a running example.

Dungeon

Generate a Dungeon of the specified width and height with the given seed.

var dungeon = Dungeon(25, 25)(Seed(Math.PI))

This function is curried, so you could assign it to a variable and generate multiple dungeons of that specific size later on.

var generate = Dungeon(25, 25)

license

MIT

About

Seedable roguelike dungeon generator

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published