Skip to content

Revamp animated sprite #1974

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

Merged
merged 1 commit into from
Feb 18, 2024
Merged

Revamp animated sprite #1974

merged 1 commit into from
Feb 18, 2024

Conversation

einarf
Copy link
Member

@einarf einarf commented Feb 17, 2024

  • AnimatedTimeBasedSprite renamed to TextureAnimationSprite
  • Keyframe renamed to TextureKeyframe
  • Added TextureAnimation wrapper to contain the keyframes offering fast keyframe lookups based on time
  • AnimatedTimeBasedSprite no longer takes a texture in the initializer. Instead the initial frame is set when the animation is assigned (and the hit box is set)
  • Updated examples / tutorials
  • Added examples
  • Added more tests + updated tests

@einarf einarf merged commit 2e0bc4b into development Feb 18, 2024
@einarf einarf deleted the animated-sprite-fix branch February 18, 2024 03:18
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.

1 participant