This Unity example project utilizes the wave-function-collapse algorithm to procedurally generate levels on a two-dimensional grid.
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.
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:
- https://github.com/mxgmn/WaveFunctionCollapse
- http://oskarstalberg.com/game/wave/wave.html
- https://robertheaton.com/2018/12/17/wavefunction-collapse-algorithm/
All the models in this project are from Kenney's Minigolf Kit.