Hi!
I like to post things in forums... but it's been a long time since I've put anything anywhere... facebook has fault in this
Today my biggest occupation is developing games in Unity in C#. I have already done several projects and with them I discovered/developed some nice little stuff that make it easier to develop.
Currently my energy has focused on 2D maps. Unity promised some tools to work with tiles, but so far nothing! And while the Unity 2d map editor does not come out I'm having fun and researching how to solve some pixel problems.
One of the features I would really like to leave was the ability to import TMX maps created by Tiled. That is a very nice map editor.
Which is exactly what I share with you... I shared a project in GitHub that shows how to load a TMX map using a few lines of code. I solve everything with native XML serialization.
Project Link:
https://github.com/diogorbg/TMX-MapLoader-Unity5I quit a lot in the optimization part, since each tile becomes a sprite in the scene. But I believe simple is best to exemplify loading, which is the focus of the example.
One cool thing I've done is being able to test the maps in the final application. I make the game load the maps at runtime. (Another thing that gets worse optimization
)
Well, that's. I hope it's fun for you as it was for me