add animation loading from resources.json
add a missing method implementation in AnimatedSprite
removes unused code
add tests with animations