ZhouWeikuan / cocos2d

cocos2d for android, based on cocos2d-android-0.82, and now ported from cocos2d-iphone 0.99.4. The googlecode address is here: http://code.google.com/p/cocos2d-android-1/ . There are several demos to watch.
610 stars 291 forks source link

how to create CCTMXTiledMap? #59

Open zhouzh1800 opened 12 years ago

zhouzh1800 commented 12 years ago

i try encoding=base64 and uncompress ".tmx" file, encoding=base64 and compress="gzip" ".tmx" file and encoding=base64 and compress="zlib" ".tmx" file. the way of uncompress and zlib is failed and throw exception, and the way of gzip that create the CCTMXTiledMap success has render issue. is latest version of cocos2d unsupport ".tmx" file created by Tiled?

ghost commented 12 years ago

Zhou,

I have found that this android repository version of cocos2d works properly with the Tiled Java 0.7.2 Version with encoding=base64, compress="gzip"

If you use the newer Tiled Qt 0.8.0 it won't work with any combination of encoding or compress/uncompress. My friend is doing iPhone development on the exact same map as I am and the cocos2d-iphone version works with the newer Tiled Qt 0.8.0.

http://sourceforge.net/projects/tiled/files/Tiled/0.7.2/tiled-0.7.2-src.zip http://sourceforge.net/projects/tiled/files/Tiled/0.7.2/tiled-0.7.2-bin.zip https://github.com/bjorn/tiled-java

ZhouWeikuan commented 12 years ago

sure, but only for gzip compression.

2012/3/24 zhouzh1800 < reply@reply.github.com

i try encoding=base64 and uncompress ".tmx" file, encoding=base64 and compress="gzip" ".tmx" file and encoding=base64 and compress="zlib" ".tmx" file. the way of uncompress and zlib is failed and throw exception, and the way of gzip that create the CCTMXTiledMap success has render issue. is latest version of cocos2d unsupport ".tmx" file created by Tiled?


Reply to this email directly or view it on GitHub: https://github.com/ZhouWeikuan/cocos2d/issues/59

This is Zhou, Weikuan(Ϊ)

zhouzh1800 commented 12 years ago

this android repository version doesn't support the Tiled 0.8.0 version because of it doesn't support rotated tile.