コード例 #1
0
ファイル: Form1.cs プロジェクト: KlejnotMopsu/IO-projekt
        public void showGameOver(string message)
        {
            GameOver = true;
            Pause    = true;

            MainTimer.Stop();

            xScoreEntry = new ScoreEntry(this);

            if (Int32.Parse(Pointslbl.Text) > lowest)
            {
                ScoreView.Clear();
            }

            pauseLabel.Text = message;

            if (pauseLabel.Text == "You win")
            {
                pauseLabel.Location = new Point((System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width / 2) - 210, 100);
            }
            else
            {
                pauseLabel.Location = new Point((System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width / 2) - 285, 100);
            }

            pauseLabel.Visible = true;

            p.MoveRightStop();
            p.MoveLeftStop();
            p.MoveUpStop();
            p.MoveDownStop();
            p.CloseGunLock();
        }