Module: dungeon

dungeon

The main dungeon module

Members

<inner> crosses :array

List of cross tiles, used for auto-joining walls
Type:
  • array

<inner> dungeon :object

The main dungeon object, generated by _dungeon
Type:
  • object

<inner> tiles :array

List of tiles and their corresponding position in the tile sheet
Type:
  • array

Methods

<inner> _dungeon() → {object}

The dungeon factory
Returns:
A distinct dungeon object
Type
object

<inner> calculateTiles(WALL_GROUP_UNIT) → {object}

Calcualte and return a subset of tiles within Wall.png
Parameters:
Name Type Description
WALL_GROUP_UNIT number A number between 1-8 that hones in on a group of tiles in Wall.png
Returns:
Environment-specific group of tiles
Type
object

<inner> distance(a, b) → {number}

Basic distance formula between two ROT rooms
Parameters:
Name Type Description
a room
b room
Returns:
distance
Type
number
Copyright © 2014
Documentation generated by JSDoc 3.3.3 on 2015-11-10T21:00:46-05:00