Fork me on GitHub

Tileset spacing

Since v2.4.4 by elnabo

import com.haxepunk.graphics.Tilemap;

If your tileset has some space between the tiles you can now specify it when constructing your tilemap. The tileSpacingWidth and tileSpacingHeight arguments are optional.

new Tilemap(tileset:Dynamic, width:Int, height:Int, tileWidth:Int, tileHeight:Int, ?tileSpacingWidth:Int=0, ?tileSpacingHeight:Int=0);

Cookbook

  • Trace capture in console
  • Joystick button mapping
  • Drawing multiple scenes
  • Emitter backward animation