Procedural Level Generator
This is a procedural level generator which I wrote from scratch.
It works by picking out random points in an array and then expanding out from those points to create rooms of varying sizes. After creating the rooms, it makes paths from room to room, making sure every room ends up being connected to the another room, so that it doesn’t end up creating inaccessible areas.
In the pictures, red is the color of the rooms, with each room getting darker the closer to the center of the room you get. Green and yellow are two layers of destructible wall, and then black is the outer border of the map, which the player cannot get through.
Source code for the level generator can be found here.
2015.