Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to create CCTMXTiledMap? #59

Open
zhouzh1800 opened this issue Mar 23, 2012 · 3 comments
Open

how to create CCTMXTiledMap? #59

zhouzh1800 opened this issue Mar 23, 2012 · 3 comments

Comments

@zhouzh1800
Copy link

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
Copy link

ghost commented Mar 23, 2012

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
Copy link
Owner

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:
#59

This is Zhou, Weikuan(Ϊ)

@zhouzh1800
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants