Toward Space-Time WaveFunctionCollapse for Level and Solution Generation

Authors

  • Kaylah Facey Northeastern University
  • Seth Cooper Northeastern University

DOI:

https://doi.org/10.1609/aiide.v20i1.31863

Abstract

WaveFunctionCollapse (WFC) is a constraint-satisfaction-based approach to procedural content generation via machine learning (PCGML). It is relatively easy to implement and requires very little training data, making it a popular approach. Generated game levels are guaranteed to look locally similar totheir example tilemaps; however, local adjacency rules often fail to capture global solvability rules, potentially making many such levels unplayable. Existing approaches to improving the solvability of WFC-generated levels typically require adding additional game-specific information in the form of global constraints, substantially increasing the complexity and time required for setup. The purpose of this work is to explore whether using level solutions as training data can allow WFC to learn solvability constraints and game mechanics. We have implemented a novel space-time approach that uses three-dimensional space-time blocks representing solutions to 2D levels as both input and output. Experiments using this method show that space-time WFC is capable of demonstrating localized game mechanics and creating small playable levels with given solutions. However, levels are slow to generate, and some high-level constraints are still not captured.

Downloads

Published

2024-11-15

How to Cite

Facey, K., & Cooper, S. (2024). Toward Space-Time WaveFunctionCollapse for Level and Solution Generation. Proceedings of the AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment, 20(1), 25-34. https://doi.org/10.1609/aiide.v20i1.31863