Class engine.BSP
Abstract binary space partitioning
Can be used to generator levels and so on
Methods
Methods
- engine.BSP:init (w, h, min_w, min_h[, max_depth=8])
-
Init
Parameters:
- w int
- h int
- min_w int
- min_h int
- max_depth int (default 8)
- engine.BSP:partition (store)
-
Partition
Parameters:
- store optional table BSP table, Default: {x=0, y=0, rx=0, ry=0, w=w, h=h, nodes={}, id=0, depth=0}