code, game, github

Using cellular automata to generate maps

This node app generates random json maps compatible with Tiled and Phaser.js. It uses a cellular automata algorithm to generate the background and then randomly places objects on the map. First set a birth and death rate as well as various spritesheet tiles for your background and objects then run app.js. The json output can then be edited further with Tiled or imported into Phaser.js. View the code here.