Beispiel #1
0
        private void gamelevel()
        {
            if (score >= targetscore)
            {
                pcbdisabled();

                Gameover gameover = new Gameover(2);
                gameover.ShowDialog();

                //MessageBox.Show("perfect:" + (score+miss*50) / 100 + "  " + "miss:" + miss,"返回", MessageBoxButtons.OK);
                this.start.Visible = true;
                this.next.Visible  = true;
                score        = 0;
                targetscore += 200;
                label2.Text  = score.ToString();
            }
            else
            {
                Gameover gameover = new Gameover(1);
                gameover.ShowDialog();
                //MessageBox.Show("perfect:" + (score+miss*50)/ 100 + "  " + "miss:" + miss
                //    + "\nGame Over!", "返回", MessageBoxButtons.OK);
                score             = scores = 0;
                rank              = 0;
                _rank.Text        = "关卡:" + rank;
                progressBar.Width = 300;
                start.Visible     = true;
                pcbdisabled();
            }
        }