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

Tile Map #210

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Tile Map #210

wants to merge 1 commit into from

Conversation

SquareLi
Copy link

Added Tiled Map Editor Support.
Support all data formats : XML, CSV, base64, base64(gzip) and base64(zlib).
Support two types of map : Isometric and Orthogonal(does not support isometric staggered)

import flash.utils.Endian;
#end

class TMXBase64
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you considered using haxe.crypto.BaseCode instead of maintaining your own base64 implementation?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I tried BaseCode.decode(), but it does not work.
My base64 string is "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".
but the BaseCode requires that base length must be a power of two. Then I tried to removed the "=", but the result of decode is empty.

@anissen anissen mentioned this pull request Apr 10, 2014
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

Successfully merging this pull request may close these issues.

2 participants