Skip to main content

Module level_gen

Module level_gen 

Source

Structs§

LevelGraph
RoomNode

Enums§

RoomType

Functions§

corridor_path
Generate a corridor path between two positions. Uses L-shaped corridors (horizontal then vertical) or straight if aligned.
corridor_path_z
Alternative corridor: Z-shaped (horizontal, vertical, horizontal).
generate_dungeon
Generate a dungeon level graph. room_count: number of rooms connectivity: 0.0 = tree (minimum edges), 1.0 = many extra edges