Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public BufferedImage render(Graphics g) {
- g.drawImage(getCurrentAnimationFrame(), (int) (x - handler.getGameCamera().getxOffset()), (int) (y - handler.getGameCamera().getyOffset()), width, height, null);
- g.drawImage(cycleDamageFrame(), (int) (x - handler.getGameCamera().getxOffset()), (int) (y - handler.getGameCamera().getyOffset()), width, height, null);
- return null;
- }
- private BufferedImage cycleDamageFrame() {
- if(attacking) {
- return dmgAnim.getCurrentFrame();
- }
- else
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement