-
Notifications
You must be signed in to change notification settings - Fork 90
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
Support Animated Capes #128
Conversation
Before merging this, skinview-utils needs to be merged and published so we can update the dependency in this package. |
I've also added an example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just minor format issue and I can give a 👍 once you fix that.
I have added a fix to stop legacy cape (22x17) being detected as a sprite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, needs review from @yushijinhun
Any update on this? |
this.lastFrameTime = currentTime | ||
|
||
if(this.capeSource != null && this.totalFrames > 1) { | ||
this.loadCape(this.capeSource, this.capeOptions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calling loadCape()
on each frame update would have a huge performance impact. I think it's better to load each frame into a individual canvas and just switch the canvas periodically.
@james090500 has implemented this in this repo ❤️. Going to close this for now as it's a bit hard to get merged in. |
This supports animated capes using a sprite. Example here
Will probably need a manual merge and also needs this to be merged before hand
bs-community/skinview-utils#15