This is a simple example application showing how to use libtiled-java to load and view a Tiled map file.
Just import this project as a Maven project, specifying the project pom.xml
file location.
The tmxviewer-java needs libtiled-java to be compiled first to add libtiled dependency to your local Maven repository.
The Apache Maven build tool is used to build from the command line.
- Run
mvn clean installin the libtiled-java directory to build libtiled.jar - Go to the
tmxviewer-javadirectory and runmvn clean installthere to compile it - Launch the
TMX Viewerusingjava -jar tmxviewer-<Version>.jar [file]