framework for animation added to sprite and dude