Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
FlxCaveGenerator | HaxeFlixel - 2D Game Engine
[go: Go Back, main page]


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