예제 #1
0
 private void GameOver()
 {
     TimerAnimate.Stop();
     TimerMove.Stop();
     heroImageCount = 0;
     TimerHeroMelt.Start();
 }
예제 #2
0
파일: Form1.cs 프로젝트: NKomars/PacMAN
 private void GameOver()
 {
     TimerHeroMove.Stop();
     TimerHeroAnimate.Stop();
     TimerEnemyAnimate.Stop();
     TimerEnemyMove.Stop();
     heroImage = 0;
     TimerHeroMelt.Start();
     Food.Visible = false;
 }
예제 #3
0
        private void GameOver()
        {
            TimerHeroMove.Stop();
            TimerEnemyMove.Stop();
            TimerHeroAnimate.Stop();
            TimerEnemyAnimate.Stop();
            TimerHeroMelt.Start();


            labelGameOver.ForeColor = Color.White;
            labelGameOver.BackColor = Color.Transparent;
            this.BackColor          = Color.Black;
            buttonRestart.Enabled   = true;
            labelGameOver.Left      = ClientRectangle.Width / 2 - labelGameOver.Width / 2;
            labelGameOver.Top       = ClientRectangle.Height / 2 - labelGameOver.Top / 2;
            buttonRestart.Top       = ClientRectangle.Height - buttonRestart.Height * 2;
            buttonRestart.Left      = ClientRectangle.Width - buttonRestart.Width * 2;
            heroImage = 0;
        }