Advertisement
Guest User

Untitled

a guest
May 29th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. for (int i = 0; i <= numbOfX; i++)
  2. for(int j = 0; j <= numbOfY; j++)
  3. {
  4. e.Graphics.DrawImage(backgroung, new Point(sizeOfBlock * (i + 1), sizeOfBlock * (j + 1)));
  5. e.Graphics.DrawImage(rock, new Point(0, sizeOfBlock * j));
  6. e.Graphics.DrawImage(rock, new Point(sizeOfBlock * i, 0));
  7. e.Graphics.DrawImage(rock, new Point(sizeOfBlock * numbOfX, sizeOfBlock * j));
  8. e.Graphics.DrawImage(rock, new Point(sizeOfBlock * i, sizeOfBlock * numbOfY));
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement