Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- baseX = (int) Math.max(0, (p.px / 32) - 15);
- baseY = (int) Math.max(0, (p.py / 32) - 15);
- for (int x = baseX; x < Math.min(baseX + 30, 100); x++) {
- for (int y = baseY; y < Math.min(baseY + 30, 100); y++) {
- arg2.drawImage(rM.map[x][y].img,
- ((rM.map[x][y].x - baseX) * 32),
- ((rM.map[x][y].y - baseY) * 32));
- if (rM.map[x][y].damage != null) {
- arg2.drawImage(rM.map[x][y].damage,
- ((rM.map[x][y].x - baseX) * 32),
- ((rM.map[x][y].y - baseY) * 32));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement