For the new game we’re working on, we developed a TMX tilemap loader and renderer to HTML5/Canvas (using the awesome EaselJS, from the CreateJS suite). Now we decided to share it with you (download link), since we haven’t found a similar one online.
Disclaimer: Tilset by “Yar” (image found at OpenGameArt.Org)
Here’s the result on HTML5 Canvas:
The loader is free to use and modify. You can download the full source code for the sample above and have a go. If you want to say thanks, just include this in the credits:
- Original tilemap load and rendering code by Erick Passos (CTO at Sertão Games)