Skip to main content

Module procgen

Module procgen 

Source

Functions§

bsp_rooms
BSP (Binary Space Partition) room generation. Returns a list of (x, y, w, h) room rectangles.
drunkard_walk
Drunkard’s walk cave generation. Returns a grid of booleans (true = floor).
smooth_noise_2d
Smoothed value noise with bilinear interpolation.
value_noise_2d
Value noise at integer coordinates using a hash.