Module ROT.Map.IceyMaze
The Icey Maze Map Generator.
See http://www.roguebasin.roguelikedevelopment.org/index.php?title=Simple_maze for explanation
Functions
init (width, height, regularity) | Constructor. |
create (callback) | Create. |
Functions
- init (width, height, regularity)
-
Constructor.
Called with ROT.Map.IceyMaze:new(width, height, regularity)
Parameters:
- width int Width in cells of the map
- height int Height in cells of the map
- regularity int[opt=0] A value used to determine the 'randomness' of the map, 0= more random
- create (callback)
-
Create.
Creates a map.
Parameters:
- callback This function will be called for every cell. It must accept the following parameters:
- x int The x-position of a cell in the map
- y int The y-position of a cell in the map
- value int A value representing the cell-type. 0==floor, 1==wall
Returns:
-
ROT.Map.IceyMaze
self
- callback This function will be called for every cell. It must accept the following parameters: