Skip to content

Instantly share code, notes, and snippets.

@typeswitch-dev
typeswitch-dev / quickgen.py
Created November 27, 2023 00:50
quickgen -- procedurally generating a map by repeated subdivision
#!/usr/bin/env python3
# quickgen by azul (@typeswitch@gamedev.lgbt) -- generates a map
# by repeated subdivision. a simple approach to generating maps
# quickly, starting from a very rough sketch.
#
# this code is public domain! use it however you like.
import random