public void Initialization() { player = new Player(); ghoul = new Ghoul(500, Screen.PrimaryScreen.Bounds.Size.Height - 70); cobra = new Cobra(750, Screen.PrimaryScreen.Bounds.Size.Height - 70); inventory = new Inventory(player); base.Controls.Add(Health); base.Controls.Add(Score); Health.Text = "Health " + player.Health.ToString(); Health.Visible = true; Score.Text = "Score " + Points.point.ToString(); Score.Visible = true; }
public void Initialization() { MenuForm menu = new MenuForm(); menu.ShowDialog(); player = new Player(); cobra = new Cobra(500, Screen.PrimaryScreen.Bounds.Size.Height - 73); inventory = new Inventory(player); base.Controls.Add(Health); base.Controls.Add(Score); Health.Text = "Health " + player.Health.ToString(); Health.Visible = true; Score.Text = "Score " + Points.point.ToString(); Score.Visible = true; }