Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update README.md

  • Loading branch information...
commit 950aa6ce62cfe0a0af866493e9a13f251046c8ac 1 parent 9106989
Adrien Fischer authored

Showing 1 changed file with 17 additions and 1 deletion. Show diff stats Hide diff stats

  1. +17 1 README.md
18 README.md
Source Rendered
... ... @@ -1,4 +1,20 @@
1 1 HaxeFlixelTiled
2 2 ===============
3 3
4   -FlxTiled port to Haxe
  4 +FlxTiled port to Haxe based on Matt Tuttle and Thomas Jahn's works
  5 +
  6 +Example based on the Flixel Mode demo :
  7 +
  8 +```bash
  9 +var tmx : TmxMap = new TmxMap( nme.Assets.getText('levels/map01.tmx') );
  10 +
  11 +// Basic level structure
  12 +var t:FlxTilemap = new FlxTilemap();
  13 +
  14 +// Generate a CSV from the layer 'map' with all the tiles from the TileSet 'tiles'
  15 +var mapCsv:String = tmx.getLayer('map').toCsv( tmx.getTileSet('tiles') );
  16 +
  17 +t.loadMap(mapCsv, "gfx/tiles.png", 8, 8, FlxTilemap.OFF);
  18 +t.follow();
  19 +add(t);
  20 +```

0 comments on commit 950aa6c

Please sign in to comment.
Something went wrong with that request. Please try again.