Sorry, this demo requires the Flash Player.

Most of our other demos are HTML5-compatible.

Get Adobe Flash player


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