-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MonoGame pipeline support #34
Comments
Yeah, I should remove that. I currently only have plans on creating a MonoGame.Pipeline nuget for MonoGame support. There's currently nothing available like that for DotTiled, but we can keep this issue open until I have added that support. Sorry if that caused a bit of confusion, I'll correct it in the README as soon as I have my workstation available. |
If you are looking for MonoGame support, may I suggest not using the pipeline at all? It was not designed for that. The pipeline was meant to parse images, models and fonts since they are all external graphics files which needs to be converted to an internal format used by the graphics driver in order for the renderer to display them on the screen. Tiled maps (and xml files in general for that matter) are data files and serve a different purpose. They need no parsing since they are stored in ASCII/UTF8 format already, readable by almost any file reader. And usually not as big as image or model files. |
Yeah, I came to the same conclusion and forged ahead. The only, minor, concern is that the image source in tsx files can't be trusted because it's an image file and goes through the pipeline. |
You are right about the image source. But the way I handled those was by using a Dictionary<string, Texture2D> where the string was the filename of the tileset and the texture2d object the tileset itself. Saves you not only re-loading the tileset again and again but that way you can match the tileset as well with ease. |
I agree with @TheBoneJarmer here, there's little no need for any actual specific MonoGame pipeline implementation. The only advantage would be that it would automatically add the depending tileset textures and then rebuild appropriately. However, as mentioned, Tiled maps are simple text files and require no external -> internal format conversion in MonoGame, so you should be able to just load them as you would any other text file. We'll keep this issue open as a reminder, and as a way for others to voice their opinions on the matter. |
You mention DotTiled.MonoGame.Pipeline in the readme, but I can't find it anywhere.
The text was updated successfully, but these errors were encountered: