Since I needed this for my own game, and because it wasn't implemented yet, I took the opportunity to add support for the backgroundcolor attribute in Tiled maps.
I made sure not to use System.Drawing for this, even if it would have been much easier. I figured it wouldn't be a good idea to add that as a dependency.
Feel free to tell me if anything catches your eyes with this.
Do know, though, that I have tested the hex transform function in C# interactive with a reference to the dll for the XNA framework with the few test cases I could pinpoint from changing the value of the attribute from the Tiled software. However, I haven't tested the whole process, only my private function I added in an isolated environment.
Since I needed this for my own game, and because it wasn't implemented yet, I took the opportunity to add support for the
backgroundcolor
attribute in Tiled maps.I made sure not to use System.Drawing for this, even if it would have been much easier. I figured it wouldn't be a good idea to add that as a dependency.
Feel free to tell me if anything catches your eyes with this.
Do know, though, that I have tested the hex transform function in C# interactive with a reference to the dll for the XNA framework with the few test cases I could pinpoint from changing the value of the attribute from the Tiled software. However, I haven't tested the whole process, only my private function I added in an isolated environment.
Thanks!