This is my 1st post, excuse me if my formatting is bad
I have been trying to make a tile based level editor for my game.
I managed to create the level and tools needed to edit the level and change tiles using that.
But after i edited the level i want to save it in .tmx format file.
Problem is i couldn’t find a way to do it. I understood that this steps are taken for generating the data element in tmx file.
# encrypt the data using zlib or gzip
# convert the encrypted data into base 64 string.
I have trouble with understanding the format in which data is supposed to be.
should it be like numbers separated by comma 1,3,2,2,2,2,2,4,1,6………
or separated by space 1 3 2 2 2 2 2 4 1 6……… or what ever format it is supposed to be.
I tried to look at format by putting break points in CCTMXXMLParser.
But all i can see is that the data is in array of unsigned char which is contains all the numbers.
this unsigned char buffer is inflated using ccInflateMemoryWithHint(i have no idea what this inflate function is about ) and the resultant inflated buffer is type casted to unsigned int.
can anyone tell me the format of the data that need to be encrypted and base 64