tiled 0.1.0 tiled: ^0.1.0 copied to clipboard
A Dart Tiled library.
#tmx.dart
tmx.dart parses TMX files produced by the Tiled map editor.
tmx.dart works on both the client and server (dartvm) platforms.
tmx.dart isn't currently maintained (contact me if you want the glory and honor!), but using this package should be fine. ... Probably.
##Install from Dart Pub Repository
Include the following in your pubspec.yaml
:
dependencies:
tmx: any
Then run the Pub Package Manager in Dart Editor (Tool > Pub Install). If you are using a different editor, run the command (comes with the Dart SDK):
pub install
##Usage
Import the package like this:
import 'package:tmx/tmx.dart'
Load a TMX file into a string by any means, and then pass the string to an instance of TileMapParser.parse:
string tmxBody = /* ... */;
var parser = new TileMapParser();
TileMap map = parser.parse(tmxBody);
##Important Notes
- The API grew out of another codebase, so if anything looks screwy / strange, drop us a line using Github Issues.