Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: Java  |  size: 0.43 KB  |  views: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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(mh.collisionMap(map), (int)(0-player.locX + gc.getWidth()/2), (int)(0-player.locY + gc.getHeight()/2));
  8.     }