extracted spriteanimation

small steps towards #603