Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1.    @Override
  2.     public BufferedImage render(Graphics g) {
  3.         g.drawImage(getCurrentAnimationFrame(), (int) (x - handler.getGameCamera().getxOffset()), (int) (y - handler.getGameCamera().getyOffset()), width, height, null);
  4.         g.drawImage(cycleDamageFrame(), (int) (x - handler.getGameCamera().getxOffset()), (int) (y - handler.getGameCamera().getyOffset()), width, height, null);
  5.         return null;
  6.  
  7.     }
  8.    
  9.    
  10.     private BufferedImage cycleDamageFrame() {
  11.         if(attacking) {
  12.             return dmgAnim.getCurrentFrame();
  13.         }
  14.         else
  15.             return null;
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement