Open bijoshtj opened 8 years ago
This one's a bit tricky to merge right now.
I think the API for SpriteView needs a lot of clean up in general. For example, the opts accepted into startAnimation
expects some similar and some different opts than those passed in on init
. For example, they both treat loop
differently.
I'm planning either an API clean-up / optimization for this class or a new class if backwards incompatibility is an issue.
Suppose a SpriteView instance is created with default animation and delay and another animation is triggered by startAnimation function, when it comes back to default animation, delay specified was not being applied b/w animation loops.