How does wave function collapse generate a level?
- Carves rooms by splitting space in two
- Picks tiles that satisfy adjacency rules
- Smooths random noise into organic cave walls
- Adds up octaves of noise into heights
Each cell starts with every tile possible; the most constrained cell is collapsed to one tile and the neighbour rules propagate, repeating until all cells are fixed.
Play Game Dev ▸