Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
HaxeFlixelTiled | ||
=============== | ||
|
||
FlxTiled port to Haxe | ||
FlxTiled port to Haxe based on Matt Tuttle and Thomas Jahn's works | ||
|
||
Example based on the Flixel Mode demo : | ||
|
||
```bash | ||
var tmx : TmxMap = new TmxMap( nme.Assets.getText('levels/map01.tmx') ); | ||
|
||
// Basic level structure | ||
var t:FlxTilemap = new FlxTilemap(); | ||
|
||
// Generate a CSV from the layer 'map' with all the tiles from the TileSet 'tiles' | ||
var mapCsv:String = tmx.getLayer('map').toCsv( tmx.getTileSet('tiles') ); | ||
|
||
t.loadMap(mapCsv, "gfx/tiles.png", 8, 8, FlxTilemap.OFF); | ||
t.follow(); | ||
add(t); | ||
``` |