Advertisement
Yo_Mb

Yo_21Mb

Oct 30th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public Map(int map_x, int map_y)
  2. {
  3. this.map_map = new int[map_x, map_y];
  4. for (int i = 0; i < map_map.GetLength(0); i++)
  5. {
  6. for (int j = 0; j < map_map.GetLength(1); j++)
  7. {
  8. PictureBox tile = new PictureBox();
  9. tile.Location = new Point((i * 40) , (j * 40));
  10. tile.Height = 40;
  11. tile.Width = 40;
  12. tile.Image = Image.FromFile("../../Screenshot (189).png");
  13. tile.Update();
  14. Console.WriteLine(i + " " + j);
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement