-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Algorithm for Filename (Number) Sorting #86
Labels
Comments
While this is annoying, there is an ugly workaround! Talking it out here helped.
|
It's been a while since I've looked into this but I believe that There's also some issues that hint on sorting being consistent if filenames are ordered ahead of time, though these are for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Binary Tree algorithm does the job of making sprites in a square, however it sorts them randomly. Is there a way to have numbered sprites in order, show in order from left to right, and making a square?
For example, I have 256 sprites 64px squares. Binary Tree makes a perfect 1024x1024 square, but they are out of order. If I do left-right, they are in order, but the sprite sheet then breaks through the max spritesheet width on iOS and other phone browsers.
You can take the JSON mapping and find the sprites in browser, but this is much, much heavier in terms of load time. The order matters for my case.
The text was updated successfully, but these errors were encountered: