A
Alex Gray
Hi,
I'm trying to create Map Editor for 2D role playing game and i'm
trying to decide what is the best way to do this. At first i thought
i'd do something like this: (for a 100x100 map)
for (int x = 0; x<100;x++)
for (int y = 0; y<100;y++)
{
System.Console.WriteLine(x.ToString()+"+"+y.ToString());
PictureBox cell = new PictureBox();
cell.Parent = this;
cell.Size = new Size(20,20);
cell.BorderStyle = BorderStyle.FixedSingle;
cell.BackColor = Color.PowderBlue;
cell.Location = new Point(x*20,y*20);
}
But it takes way to long to start up. I'm essentially trying to make
an Excel worksheet, but each cell will contain a small bitmap (no
text).
Any Ideas?
-alex-
I'm trying to create Map Editor for 2D role playing game and i'm
trying to decide what is the best way to do this. At first i thought
i'd do something like this: (for a 100x100 map)
for (int x = 0; x<100;x++)
for (int y = 0; y<100;y++)
{
System.Console.WriteLine(x.ToString()+"+"+y.ToString());
PictureBox cell = new PictureBox();
cell.Parent = this;
cell.Size = new Size(20,20);
cell.BorderStyle = BorderStyle.FixedSingle;
cell.BackColor = Color.PowderBlue;
cell.Location = new Point(x*20,y*20);
}
But it takes way to long to start up. I'm essentially trying to make
an Excel worksheet, but each cell will contain a small bitmap (no
text).
Any Ideas?
-alex-