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

Add animation advancing to tmxrasterizer #2868

Merged
merged 2 commits into from
Jul 20, 2020

Conversation

sballew
Copy link
Contributor

@sballew sballew commented Jul 18, 2020

Relates to #1433 .

Objective
Allow a user to advance animations by a duration prior to rasterizing an image via tmxrasterizer.

Reasoning
This is an alternative to GIF support. A user can script multiple tmxrasterizer commands, each advancing the animation. This results in multiple PNG files, which the user can stitch together with any GIF creation tool such as imagemagick.

Notes
This should work with worlds, as it includes the tile animation reset. However I have not yet tested it on an animated world.

Copy link
Member

@bjorn bjorn left a comment

Choose a reason for hiding this comment

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

Looks great! I've left a number of nitpicks, mostly about code style.

src/tmxrasterizer/main.cpp Outdated Show resolved Hide resolved
src/tmxrasterizer/main.cpp Outdated Show resolved Hide resolved
src/tmxrasterizer/tmxrasterizer.cpp Outdated Show resolved Hide resolved
src/tmxrasterizer/tmxrasterizer.h Outdated Show resolved Hide resolved
src/tmxrasterizer/tmxrasterizer.h Outdated Show resolved Hide resolved
src/tmxrasterizer/tmxrasterizer.h Outdated Show resolved Hide resolved
@sballew
Copy link
Contributor Author

sballew commented Jul 19, 2020

@bjorn Thanks for the comments and suggestions. I have incorporated all changes. I don't really have a good C++ dev environment set up, so I let a number of those code styles get through, but thank you for catching them.

@bjorn bjorn merged commit 4c15081 into mapeditor:master Jul 20, 2020
@bjorn
Copy link
Member

bjorn commented Jul 20, 2020

@sballew Thanks again for this nice idea and for submitting the patch!

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