Module cellular.lua

Cellular Automata Class.

Sets up and generates a CA map based on parameters provided. Later exported into roomClass for procedural room generation. But also may be used for Cellular Automata caves.

Info:

  • Author: Lonely Owl Games

Functions

CA:floodFill (map, start, list) Recursively flood fill tile from start For every neighbor not flooded, call _floodFill until no more unfilled neighbors exist.


Functions

Methods
CA:floodFill (map, start, list)
Recursively flood fill tile from start For every neighbor not flooded, call _floodFill until no more unfilled neighbors exist.

Parameters:

  • map
  • start tile to start on
  • list for recursion
generated by LDoc 1.5.0 Last updated 2023-09-01 10:24:59