Creates a Cellular Automata Map Generator
Clear previously captured snapshots.
Connects areas of the map to ensure they are all connected.
For instance, if you're using an alive value of 1 for walls, then this can connect the dead value of 0 to ensure all squares on the map are accessable.
The value to connect (default this.deadValue)
Sets the map values to match a given table. A shallow copy is made from the given table.
Runs a number of simulation steps. Each step generally "smooths" the map.
The number of steps to run.
Returns the internal map.
Returns previously captured snapshots.
Randomly sets each cell to either alive or dead.
The chance for a cell to be set to the 'alive' value.
Takes a snapshot of the current map state. These can be retrieved through getSnapshots()
Generated using TypeDoc
Used to create CellularAutomata Maps.