示例#1
0
文件: Form1.cs 项目: x16j039/Game2
 private void Form1_Load(object sender, EventArgs e)
 {
     charaList = new List <Chara>();
     timeCount = new TimeCounter();
     ship      = new Chara(Properties.Resources.ship);
     charaList.Add(ship);
 }
示例#2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            charaList = new List <Chara>();
            timeCount = new TimeCounter();
            ship      = new Chara(Properties.Resources.ship);
            missile   = new Chara[10];
            for (int i = 0; i < missile.Length; i++)
            {
                missile[i]         = new Chara(Properties.Resources.Missile);
                missile[i].Visible = false;
                charaList.Add(missile[i]);
            }

            charaList.Add(ship);
        }