Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i <= numbOfX; i++)
- for(int j = 0; j <= numbOfY; j++)
- {
- e.Graphics.DrawImage(backgroung, new Point(sizeOfBlock * (i + 1), sizeOfBlock * (j + 1)));
- e.Graphics.DrawImage(rock, new Point(0, sizeOfBlock * j));
- e.Graphics.DrawImage(rock, new Point(sizeOfBlock * i, 0));
- e.Graphics.DrawImage(rock, new Point(sizeOfBlock * numbOfX, sizeOfBlock * j));
- e.Graphics.DrawImage(rock, new Point(sizeOfBlock * i, sizeOfBlock * numbOfY));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement