示例#1
0
 private BufferedImage getCurrentAnimationFrame() {
   if (faceDirection) {
     return golem_walk_right.getCurrentFrame();
   } else {
     return golem_walk_left.getCurrentFrame();
   }
 }
示例#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();
 }