Procedural Map Generator
local processingProcedural Map Generator
What it is
A procedural map generator builds a tile grid from rules and a seed instead of by hand. BSP splits the map into rooms joined by corridors, cellular automata smooths random noise into organic caves, and a drunkard walk carves winding tunnels. Every result keeps only the largest connected area, so no floor tile is unreachable.
When to use it
Use it to prototype roguelike levels, to get a starting layout you then paint over, or to compare algorithms for a game jam. The Tiled JSON output opens in Tiled and in Tilemap Converter.
Gotchas & limits
Tiles are only walls (1) and floors (2); doors, spawn points and decoration are left to you. Cave and walker maps are always one connected area, and pockets that were cut off are filled in, which slightly lowers the floor share. The same seed gives the same map only for the same size and settings.