A 2D city map generator written in Lua.
Inspired by this BSP dungeon maker.
To make things easy, the generator runs inside of LÖVE 2D. You'll need to download it and then drop this folder onto their app.
The map generator makes use of a binary space partitioning to subdivide the map into city blocks. You can customize the dimensions of the map as well as the width of the street lanes. The BSPNode class should stand on its own since it's primarily concerned with geometry and not graphics.
There are a few things that would make this generator more interesting
- Building generation
- Water features like lakes and rivers
- Address generation
If you add any features for your project then I'd love to get them back in the form of a pull request.
Public Domain