$ ./guess_the_languageGame Dev
Game Dev · hard · #247

How does wave function collapse generate a level?

  1. Carves rooms by splitting space in two
  2. Picks tiles that satisfy adjacency rules
  3. Smooths random noise into organic cave walls
  4. 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 ▸