This is experimenting with using Wave Function Collapse in Godot for use in level generation. More or less it allows you to build a prototype level in Godot and then it will look at that prototype level for determining how to generate levels that are similar to it.

WASD to move around, Q and E to zoom in and out. In the C# (downloadable) version, Enter will generate a new level, and F1 will bring up debug information.

The original was written in GDScript (the web embedded version), but proved to be very slow. I've rewritten it in C#, which significantly sped up the generation, and I added in tiled generation, giving an infinite world (this version is available for download for windows).

Source code can be found here: https://github.com/cosmiccrossway/WaveFunctionCollapse

Updated 1 day ago
Published 16 days ago
StatusPrototype
PlatformsHTML5, Windows
Rating
Rated 4.0 out of 5 stars
(1 total ratings)
AuthorCosmicCrosswayStudios
Made withGodot

Download

Download
WaveFunctionCollapse-Windows.zip 59 MB

Leave a comment

Log in with itch.io to leave a comment.