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