/rand2dmap

Randomly generated 2d map - python

Primary LanguagePython

2d map generator in Python

Script generates 2d map with randomly placed rooms and paths. I'm using BSP (binary space partitioning) algorithm for this task. Maps are saved in files in form of 2d arrays like so:

0000000000
0111100000
0111100000
0111100000
0002000000
0002000000
0011111110
0011111110
0011111110
0000000000