Add animation to platformer.py