Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/foozmeat/2dcitymaker

A 2D city map generator written in Lua for LÖVE 2D
https://github.com/foozmeat/2dcitymaker

Last synced: 15 days ago
JSON representation

A 2D city map generator written in Lua for LÖVE 2D

Awesome Lists containing this project

README

        

# 2DCityMaker
A 2D city map generator written in Lua.

![screenshot](screenshot.png)

Inspired by this [BSP dungeon maker](http://gamedevelopment.tutsplus.com/tutorials/how-to-use-bsp-trees-to-generate-game-maps--gamedev-12268#disqus_thread).

### Running

To make things easy, the generator runs inside of [LÖVE 2D](https://love2d.org/). You'll need to download it and then drop this folder onto their app.

### Usage

The map generator makes use of a [binary space partitioning](https://en.wikipedia.org/wiki/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.

### Places to go

There are a few things that would make this generator more interesting

* Building generation
* Water features like lakes and rivers
* Address generation

### Contributions

If you add any features for your project then I'd love to get them back in the form of a pull request.

### License

Public Domain