Generates json files for Tiled and Phaser
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
fonts
scripts
styles
.DS_Store
README.md
app.js
app.js.html
base_out_atlas.png
blocked.png
build_atlas.png
cellular.js
generated-map.json
global.html
grass-tiles.png
index.html
map.json
obj_misk_atlas.png
package.json
terrain_atlas.png
tree.png

README.md

map-generator

Generates json files for Tiled and Phaser using a cellular automata algorithm.

Edit the starting variables in app.js to set the tile ids for the "empty" and "solid" cells of the automata. Here you can also set the birth and death rate and number of simulation steps. You'll also see how to place arbitrary solid objects.

run node app.js and you'll get a generated-map.json file that can be imported into Phaser or opened and edited further with Tiled.