Hello,
First, thank you for your great work on this nice software.
I am facing a problem with my game exported as a runnable JAR: I can't find how to read .tmx maps from inside the JAR !
In Eclipse, running the program works well, I can read and render the maps.
When running the JAR, I have trouble accessing the JAR resources and render the maps.
Here is how I do to access a resource (a .tmx map) from the JAR itself:
InputStream is = Content.class.getResourceAsStream("/maps/map1/mymap.tmx");
mapReader = new TMXMapReader();
map = mapReader.readMap(is);
From my researches, it seems to be a valid method to reach a resource. I am wondering if the MapReader.readMap(InputStream) works as intended or not. Could you confirm ?
I'm confused because I don't see any other way of reading my map.
Thanks for helping!