This Random Cave Generator creates sprawling, intricate dungeons or caverns stored in a ds_grid, which allows a level to easily be generated from it. Changing the parameters can wildly alter the generation, creating cave systems of numerous shapes and sizes with no disconnected areas or islands to worry about.
Also included is an intelligent water creation script, which adds water at any coordinate, sensibly filling up the caverns below using a special algorithm which is guaranteed to perfectly will the map without any strange holes or air pockets that would not occur in real life (and are seen all too often in other games!).
The code is fully commented and easy to follow.
Version 1.0.0. Published July 16, 2014
Created with GameMaker: Studio v1.99.177
This asset hasn't received enough reviews yet.
You can only review assets you've bought.
Only wish is for the alternative code which forces paths to unreachable sections instead of restarting, tends to take up to 8 or 10 seconds on some caves without it.
Total size 4.83 KB