Animated sprite class completed.