コード例 #1
0
ファイル: Level2.cs プロジェクト: Hikozume/Game
 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;
 }
コード例 #2
0
        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;
        }