Guest User

Untitled

a guest
Feb 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. int tileSize = 50;
  2. int[][] grid = new int[3][5];
  3.  
  4. int xpx = 0,ypx = 0;
  5.  
  6. for (int y = 0; y <= grid.length; y++) {
  7.  
  8. for (int x = 0; x <= grid[0].length; x++) {
  9.  
  10. // Replace by grid[yval][xval] = Rect(xpx,ypx,tileSize,tileSize);
  11. System.out.println("X Coord:" + xpx + "\nY Coord:" + ypx + "\nX,Y Array:" + x + "," + y);
  12.  
  13. xpx += tileSize;
  14.  
  15. }
  16. xpx = 0;
  17. ypx += tileSize;
  18. }
Add Comment
Please, Sign In to add comment