Exemple #1
0
        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();
        }
Exemple #2
0
        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);
        }