Controls Orbit: mouse left click and drag.

  Zoom: mouse wheel.

  Space: generate a new level.

  UI definitions - Left/Right arrows: changes the type of modules.

  - Generate: generates a new level with the current stats.

  - Seed: a specific seed for the random state.

  - Random: will apply a random seed for the next generation.

  - Map size: x/y/z level dimensions

  - Divide: will apply multiple wfc dividing the whole level, for better optimization.

  - Process: Activate it to see the whole generation, step by step.

  - Speed: the process speed.

  - View module possibilities: the wfc algorithm starts with all possible modules for each cell in the level. The whiter the cell, the more modules it contains.

  - Backtracking: the generation may result into a cell impossible to collapse (it has 0 possibilites) and then it creates a red square. With backtracking, it will return to the last state, continuing the random generation from there.

  You can find a simple implementation of the algorithm, (part of a Udemy course I'm creating) here: https://github.com/guillemsrr/WFCourse. Currently it will be in my native language (catalan) let me know if you'd be interested in a course in English!

  https://www.udemy.com/course/unity_wave_function_collapse/

Development log

Comments
Welcome to zddgame comments! Please keep conversations courteous and on-topic. To fosterproductive and respectful conversations, you may see comments from our Community Managers.
Sign up to post
Sort by
Show More Comments

  

Copyright 2023-2025 - www.zddgame.com All Rights Reserved