Socket
Book a DemoInstallSign in
Socket

dungeon

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dungeon

Seedable roguelike dungeon generator

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
3
-25%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

roguelike

FAQs

Package last updated on 12 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.