libgdx contains built-in support for tiled maps. If you look inside com.cmein.tilemap.utils, you will see several classes, none of which we wrote (thanks libgdx!). If you open up TiledMapPacker.java, you’ll notice it has a runnable main method. In this main method, there are only three lines that need to be edited to create a tiled map:
tmxFile = new File("data/tiledmaps/LEVEL2.tmx"); baseDir = new File("data/"); outputDir = new File("data/");
The file extension “.tmx” may be foreign to you; it is associated with “Tiled”, a program to help the process of making tiled maps (see http://www.mapeditor.org/). The main method in TiledMapPacker takes the .tmx file and outputs two new files.