Wave Function Collapse (WFC) by @exutumno is a new algorithm that can generate procedural patterns from a sample image. It's especially exciting for game designers/developers, letting us draw out our ideas instead of hand-coding them.
Inspired by this Youtube video by Dan Shiffman from Coding Train, I recreated the algorithm using JavaScript with p5.js, with a few optimization of my own.
- Attempting to create 3D procedural map using WFC