private BufferedImage getCurrentAnimationFrame() { if (faceDirection) { return golem_walk_right.getCurrentFrame(); } else { return golem_walk_left.getCurrentFrame(); } }
@Override public void update() { faceDirection(handler.getWorld().getEntityManager().getPlayer().getX()); golem_walk_right.update(); golem_walk_left.update(); if (patrolDistance != 0) { patrol(); } move(); }