/WFC-Unity-Example

A Unity project utilizing the wave-function-collapse algorithm to procedurally generate level.

Primary LanguageC#MIT LicenseMIT

Wave-function-collapse algorithm with Unity

This Unity example project utilizes the wave-function-collapse algorithm to procedurally generate levels on a two-dimensional grid.

Demo image

About this project

Using Unity version 2019.1.14f1.

Note: This implementation of the WFC-algorithm does not include any error correction but since the module set in this project is complete the algorithm will not run into any error state.

Resources

Special credits to Oskar Stålberg for his talk about this algorithm and it's implementation in the game Bad North. If you want to learn more about the algorithm go check it out.

Other helpful resources about WFC:

All the models in this project are from Kenney's Minigolf Kit.