public MainForm() { InitializeComponent(); map = new MapControl(); map.Visible = false; map.Location = new Point(204, 208); tabControl1.TabPages[0].Controls.Add(map); map.BringToFront(); pBoxPlayer.Parent = pBoxEnvironment; pBoxEnemy.Parent = pBoxEnvironment; Monsters.GenerateMonsters(); ItemStats.GenerateItems(); }
public MainForm() { InitializeComponent(); //Laver map behind the scenes map = new MapControl(); map.Visible = false; map.Location = new Point(204, 208); tabControl1.TabPages[0].Controls.Add(map); map.BringToFront(); //Transparency fix pBoxPlayer.Parent = pBoxEnvironment; pBoxEnemy.Parent = pBoxEnvironment; //Load Game Resources ItemStats.GenerateItems(); Monsters.GenerateMonsters(); MapStats.GenerateMaps(this); }