Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/foozmeat/2dcitymaker
- Owner: foozmeat
- License: unlicense
- Created: 2015-02-10T04:08:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-26T21:39:55.000Z (over 9 years ago)
- Last Synced: 2024-10-04T16:09:57.286Z (about 1 month ago)
- Language: Lua
- Size: 191 KB
- Stars: 15
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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