final Level level = getLevel();
final Player player = level.getPlayer();
final Point2D screenPlayerPosition;
if ( player instanceof AnimatedElement ) {
final EntityMovementAnimation animation = ( (AnimatedElement) player ).getAnimation();
Point2D animationPosition;
if ( animation != null ) {
try {
animationPosition = animation.getActualPosition();
} catch ( TerminatedAnimationException e ) {
animationPosition = player.getPosition();
}
} else {