Пример #1
0
 //正常模式游戏结束判定
 private void NomalCheckEnding()
 {
     this.pictureBox1.Invalidate();
     //BOSS死亡游戏结束
     if (Scene.Instance.win == 1)
     {
         timer1.Stop();
         nomalwin a = new nomalwin();
         a.Show();
     }
     //都死亡游戏结束
     if (Scene.Instance.P1Play == null && Scene.Instance.P2Play == null)
     {
         timer1.Stop();
         nomallose a = new nomallose();
         a.Show();
         // MessageBox.Show("You are loser");
         // this.Close();
     }
     //老鹰没了 游戏结束
     if (Scene.Instance.Symbol == null)
     {
         timer1.Stop();
         nomallose a = new nomallose();
         a.Show();
         //    MessageBox.Show("You are loser");
         //   this.Close();
     }
 }
Пример #2
0
        //正常模式游戏结束判定
        private void NomalCheckEnding()
        {
            this.pictureBox1.Invalidate();
            //BOSS死亡游戏结束
            if (Scene.Instance.win == 1)
            {

                timer1.Stop();
                nomalwin a = new nomalwin();
                a.Show();
            }
            //都死亡游戏结束
            if (Scene.Instance.P1Play == null && Scene.Instance.P2Play == null)
            {

                timer1.Stop();
                nomallose a = new nomallose();
                a.Show();
                // MessageBox.Show("You are loser");
               // this.Close();
            }
            //老鹰没了 游戏结束
            if (Scene.Instance.Symbol == null)
            {               
                timer1.Stop();
                nomallose a = new nomallose();
                a.Show();
            //    MessageBox.Show("You are loser");
             //   this.Close();
            
            }
        }