How to import a .tmx file (tile map editor) into my XNA project

I tried loading the .tmx file (Map Editor) into my project, but I get this error:

It is not possible to automatically determine which importer to use for "Level1.tmx". Importers that process this type of file do not exist. Indicate the importer that processes this type of file in your project.

+3
source share
4 answers

XNA does not download the file by default. There is a full TMX map downloader for XNA projects located here http://windowsphonedevelopments.com/tmx-map-loader-xna-1-0/

TMX Map Loader XNA XNA, TMX ( .xnb).

+2

, :

TiledSharp

.NET # Tiled TMX

https://github.com/marshallward/TiledSharp

+1

I found a tool called XTiled that handles loading and rendering .tmx files from start to finish.

Here's the website: https://bitbucket.org/vinull/xtiled Example / Tutorial from the author: https://www.youtube.com/watch?v=qd0Yh50SPL4

With Tiled Sharp, I was able to load tmx into memory, but there is no api for rendering fragments. You have to do it yourself.

0
source

Source: https://habr.com/ru/post/1794345/


All Articles