Advertisement
Guest User

Untitled

a guest
May 30th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. baseX = (int) Math.max(0, (p.px / 32) - 15);
  2. baseY = (int) Math.max(0, (p.py / 32) - 15);
  3.  
  4. for (int x = baseX; x < Math.min(baseX + 30, 100); x++) {
  5. for (int y = baseY; y < Math.min(baseY + 30, 100); y++) {
  6. arg2.drawImage(rM.map[x][y].img,
  7. ((rM.map[x][y].x - baseX) * 32),
  8. ((rM.map[x][y].y - baseY) * 32));
  9. if (rM.map[x][y].damage != null) {
  10. arg2.drawImage(rM.map[x][y].damage,
  11. ((rM.map[x][y].x - baseX) * 32),
  12. ((rM.map[x][y].y - baseY) * 32));
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement