pietru2004 / Godot-WFC

My implementation of WFC algoritm with gui for making tile rules and 3 generators.
32 stars 1 forks source link

Godot-WFC

Hello, this is my implementation of WFC algorithm.

All is fitted in 1 node.

Quick Guide

  1. Disable Generation Lock.
  2. Define meshes in mesh lib data.
  3. Press Generate Mesh Lib.
  4. Paint rules(tiles), how the tiles can connect.
  5. Press Generate Rules.
  6. Define Map Generation Settings.
  7. Press Generate Map.

exported vars Running, Time and Remaining cells shows is generator working.

Troubleshooting

if generation wails try stopping generation by unchecking running(only if conflict repair is active)

after that check error out

Error Out

It shows last cell that had 0 possible outcomes Array elements:

  1. Position of cell.
  2. List with all neighbours of cell and tiles that they allow in place of cell.
  3. List of arrays from neighbour cells that were used.