marshallward / TiledSharp

C# library for parsing and importing TMX and TSX files generated by Tiled, a tile map generation tool
http://marshallward.github.io/TiledSharp
Apache License 2.0
328 stars 87 forks source link

Added animation support #7

Closed Josh1billion closed 9 years ago

Josh1billion commented 9 years ago

Tiled 0.10 added support for animated tiles. This commit adds support to TiledSharp for making use of those animated tiles.

Josh1billion commented 9 years ago

Right after I submitted this, I saw you already had a branch for 0.10 support with a similar implementation. Oh well. :P Great project, keep up the good work.

marshallward commented 9 years ago

Thanks Josh, I still do appreciate the patch and the contribution. I'll try to test out that branch today and move it to the master branch.

marshallward commented 9 years ago

I moved the branch contents into the master branch. Please let me know if you see any problem, or have any suggestions. (I did find one bug during the testing related to renderorder, there are surely more.)

Thanks for reminding me to come back to this.

Josh1billion commented 9 years ago

Sweet, thanks for doing this. :) I'll for sure let you know if I encounter any bugs.

Josh1billion commented 9 years ago

I've found a bug, but I believe I have it fixed. After I do some more testing, I'll fork and submit a pull request so you can take a look. The bug is that a null reference exception gets thrown upon trying to load a .TMX file that has an animated tile in it.