Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Map(int map_x, int map_y)
- {
- this.map_map = new int[map_x, map_y];
- for (int i = 0; i < map_map.GetLength(0); i++)
- {
- for (int j = 0; j < map_map.GetLength(1); j++)
- {
- PictureBox tile = new PictureBox();
- tile.Location = new Point((i * 40) , (j * 40));
- tile.Height = 40;
- tile.Width = 40;
- tile.Image = Image.FromFile("../../Screenshot (189).png");
- tile.Update();
- Console.WriteLine(i + " " + j);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement