MarkB, have you tried out the samples/tests that come with libgdx? I've used one of them to learn how to use the actual implementation, that should work for you too: something i had problems figuring out at first was how to reference the tileset itself.
In your TMX file, you should have something like:
- Code: Select all
<tileset firstgid="1" name="tileset" tilewidth="224" tileheight="224">
<image source="tilesets/nature/224.png" width="896" height="3360"/>
That is, it looks like the map should reference the tileset as a relative path: in the directory containing TMX files i've the "tileset" directory containing various tilesets (nature/...) and then the TexturePacker2 packed resources.
Don't know if you already tried, but this thing was the only problem i had with the current Tileset implementation.