@Override
    public Animation getAnimation() {
	Animation animation = super.getAnimation(0);
    
	for (int i=0; i<animation.getFrameCount(); ++i) {
        if(animation.getImage(i) == null) continue;
	    if (getFacing() == UP) {
		animation.getImage(i).setRotation(180);
	    } else if (getFacing() == DOWN) {
		animation.getImage(i).setRotation(0);
	    } else if (getFacing() == LEFT) {
		animation.getImage(i).setRotation(90);
	    } else if (getFacing() == RIGHT) {
		animation.getImage(i).setRotation(270);
	    } 
	}
	
	return animation; 
    }