Module ROT.Map.EllerMaze

The Eller Maze Map Generator.

See http://homepages.cwi.nl/~tromp/maze.html for explanation

Functions

init (width, height) Constructor.
create (callback) Create.


Functions

init (width, height)
Constructor. Called with ROT.Map.EllerMaze:new(width, height)

Parameters:

  • width int Width in cells of the map
  • height int Height in cells of the map
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.EllerMaze self
generated by LDoc 1.4.6 Last updated 2017-07-19 18:43:03