A Dart Tiled library.
Include the following in your
dependencies: tiled: any
Import the package like this:
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);
TMX support is work of @radicaled and we have got his code from tmx.dart lib.
<object />tags are now parsed for their
Add this to your package's pubspec.yaml file:
dependencies: tiled: ^0.2.0
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.2.0||Jan 1, 2019|
|0.1.0||Jan 1, 2019|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Jan 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, web, other
No platform restriction found in primary library
Document public APIs. (-0.44 points)
156 out of 159 API elements (library, class, field or method) have no adequate dartdoc content. Good documentation improves code readability and discoverability through search.
lib/src/layer.dart. (-1.49 points)
lib/src/layer.dart reported 3 hints:
line 70 col 13: The value of the local variable 'flipped_horizontally' isn't used.
line 71 col 13: The value of the local variable 'flipped_vertically' isn't used.
line 72 col 13: The value of the local variable 'flipped_diagonally' isn't used.
lib/src/tile_map.dart. (-0.50 points)
lib/src/tile_map.dart reported 1 hint:
line 60 col 7: 'onError' is deprecated and shouldn't be used.
dartfmt to format
Fix additional 4 files with analysis or formatting issues.
Additional issues in the following files:
The description is too short. (-20 points)
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package. Common file name patterns include:
example.dart or you could also use
|Dart SDK||>=2.0.0-dev.50.0 <3.0.0|