Sorry this demo requires the Flash player.

Most of our other demos are html5 compatible.

Get Adobe Flash player

FlxCaveGenerator

source code

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);

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. :)