FlxCaveGenerator

A demo showing off the capabilites of FlxCaveGenerator.

Generating a cave for a FlxTilemap is really simple:

var caveData:String = FlxCaveGenerator.generateCaveString(Width, Height, SmoothingIterations, WallRatio);
HAXE

The String generated can be used directly in FlxTilemap's loadMap() method.

You can use WASD or the arrow keys to move the little character around. :)