Explanation

Wave function collapse is a type of procedural generation algorithm/technique that works on the idea of process of elemination. This demo uses a preconfigured tileset although  any tileset can be used as long as its rules are defined.

Unfotunately the repository for this project is private and owned by my university so I have made the source code available for download as a zip on this page.


(All credits for sprites go to  Nintendo and The Pokemon  Company.)

Instructions

Slide the HP bar to change the delay , level 0 will change it to solve in a single process before rendering rather than tile by tile.

Reset will reset the grid to unsolved, make sure to reset before solving if you change the grid size.

Weighting will change if the algorithm accounts for a tiles weight when picking which tile to collapse into. Note that you can toggle this mid solving and you cannot change the degree of weighting for each tile in this render

Propagation distance determines how many  tiles away information is spread  when a tile is collapsed . One represented by pichu will only spread to immidiate tiles where as  each additional level will cause another tile out to be updated.

The sliders at the bottom determine grid width and height respectively and have a range of 2-50 for this demo.

StatusIn development
CategoryOther
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorAwoo
TagsProcedural Generation

Download

Download
2D_WFC_demo_source.zip 2.4 MB

Comments

Log in with itch.io to leave a comment.

nice