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

tileset auto animation support #2

Closed
city41 opened this issue Dec 24, 2021 · 1 comment
Closed

tileset auto animation support #2

city41 opened this issue Dec 24, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@city41
Copy link
Owner

city41 commented Dec 24, 2021

Tilesets need to support auto animation. This will be very similar to how cromImages support it, but each individual tile is examined to see if it needs it.

A tileset specifies it wants auto animation with the autoAnimation?: 4 | 8 key. If this key is present, then the provided png is divided into 4 or 8 frames, depending on the value. When generating the tile sources for this tileset, need to examine frames 1-n for each tile. If all the frames are empty (alpha=0), then this particular tile does not have auto animation. If any tile is not empty, then slurp them up as child frames for this source. From there the existing auto animation system will take over.

During tileset code emit, need to also emit the autoAnimation flag, but I think that will already happen.

@city41 city41 added the enhancement New feature or request label Dec 24, 2021
@city41
Copy link
Owner Author

city41 commented Dec 10, 2023

This is now in 0.13.0

@city41 city41 closed this as completed Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant