A downloadable tool for Windows and Linux

Dreamlike, the landscape stretches forever in every direction.

But stray too far, look back, and it's not how you remember. You can never return to what came before.

Ground Collapse is a library, a tool, and a demo for creating infinite generative, tiled, 2D terrain (or levels). It's open-source, with code available at https://gitlab.com/NPC-Dev/groundcollapse

It uses constraint solving (clingo and Answer Set Programming), inspired by Wave Function Collapse, to ensure that every generated tile will seamlessly fit in with its surroundings.

NEW: Open Beta v. 0.1, December 2020

In the newest release, GroundCollapse 0.1, a new visual tileset editor lets you create new tilesets quickly!

Features include:

  • Flexible, tag-based adjacency editor to quickly set up each tile's possible neighbors.
  • Full undo/redo support.
  • Auto-slicing of sprite sheets to quickly import many tiles at once.
  • And more!

In a built-in, highly-configurable demo, you can explore a dreamlike landscape where, if you stray too far from a place, you will return to find it completely changed.

The underlying library, written in Python, provides a highly flexible framework for building generative terrain, with extensible constraints allowing for many possible styles and rules.

GroundCollapse is used to generate the world for Dreams of Collapse, a roguelike in which you, the player, can re-imagine parts of a dreamlike landscape.

Integrate it with any game engine or art tool that can interface with a Python library (or run it as an external program), and you could visualize or save the resulting tiles in any number of ways.

The possibilities are endless with GroundCollapse.

Learn more at: https://npc.codes/projects/groundcollapse

Note: GroundCollapse should work on Mac, but for now, I have no way to package it for Mac, so you will need to download the code and follow the instructions to run it using Python.

Procjam Info

GroundCollapse 0.0.1, the first alpha build, was created for #procjam 2019.

For #procjam 2020, GroundCollapse 0.1.0 adds a visual tileset editor and several other improvements, such as walkability settings and extensible custom metadata for each tile. (Some code was written before the beginning of the jam, as is encouraged for procjam!)

PlatformsWindows, Linux
Rated 5.0 out of 5 stars
(1 total ratings)
Authoran npc dev
Made withpygame
Tags2D, constraint-solving, Game Design, Generator, Level Editor, Open Source, Procedural Generation, PROCJAM, wave-function-collapse
Code licenseMIT License
Average sessionA few minutes


Linux Executable 351 MB
Version 0.1.1 Dec 16, 2020
Windows 64-bit Executable 236 MB
Version 0.1.1 Dec 16, 2020
Source Code v.0.1.1 (Python, any platform)
(OLD 0.0.1 Alpha) Windows 208 MB

Development log

Leave a comment

Log in with itch.io to leave a comment.