Wave Function Collapse (WFC) 2D Generator's icon

Wave Function Collapse (WFC) 2D Generator 1.0.2 Tools 4.2 Community

Submitted by user Mazzel; MIT; 2024-07-05

This is a wave function collapse implementation for Godot in C#.

Please refer to Examples on how to use. basically you need 2 tile maps. one to create a new map on (target) and one to use as a sample on how the tiles are used (sample).

Features:

Create map based on a sample
Different match levels are possible (through changing MATCH_RADIUS)
Multi-threading
Possibility analysis from sample
Fail correction (Generation will not fail anymore!)
Has a base generator class that can be expanded for your use
Currently has built in support for TileMap2D and GridMap( 2D only )


(Used tile-sets are from Kenney with a CC0 license)


View files Download Submit an issue Recent Edits