AndEngineTMXTiledMapExtension
AndEngineTMXTiledMapExtension copied to clipboard
Code require data in .tmx file to be compressed
I was struggling with a preDraw null pointer exception problem after attaching a TMXLayer to the scene. After debugging I finally came to the conclusion that the texture for the tiles where never loaded. Turns out I had selected to store .tmx data uncompressed when using Tiled Map Editor. The current code require that TMX data is stored compressed (zlib).
TMXParser.java
final boolean binarySaved = this.mDataCompression != null && this.mDataEncoding != null;
If mDataCompression is null then the texture is never loaded.