SHARE
TWEET

Untitled

a guest Aug 12th, 2012 15 Never
  1. public void render(GameContainer gc, Graphics g)
  2.                         throws SlickException
  3.     {
  4.         map.render((int)(0-player.locX + gc.getWidth()/2), (int)(0-player.locY + gc.getHeight()/2));
  5.         g.setColor(Color.black);
  6.         g.fillRect(player.hitbox.x, player.hitbox.y, player.hitbox.width, player.hitbox.height);
  7.         g.drawImage(player.collisionMap, (int)(0-player.locX + gc.getWidth()/2), (int)(0-player.locY + gc.getHeight()/2));
  8.     }
RAW Paste Data
Top