This is an interactive demo of the wave function collapse algorithm on tilesets, complete with handmade controls for starting or slowing down the simulation, as well as changing the tileset and individual tile weights.

The source code can be found on my GitHub page, here.

Made using C++ and raylib, the project was inspired by the work of Maxim Gumin. Tilesets are adjusted from those found on Maxim's GitHub, as well as those of Guy Walker.

Tips:

  • The simulation pauses for 5 seconds on completion and then resets.
  • There are multiple tilesets to choose from in the top left tile menu.
  • Tiles can be turned off in the tile menu by clicking on the tile image. This change will affect the next simulation.
  • Changing tile weights affects the current simulation. The weights can be lowered to a minimum of '1' and a maximum of '200'.



Comments

Log in with itch.io to leave a comment.

add custom patternts