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_UNITnumber 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 aroom broom Returns:
distance- Type
- number