private void GameOver() { TimerHeroMove.Stop(); TimerHeroAnimate.Stop(); TimerEnemyAnimate.Stop(); TimerEnemyMove.Stop(); heroImage = 0; TimerHeroMelt.Start(); Food.Visible = false; }
private void GameOver() { TimerKlucisMove.Stop(); TimerKlucisAnimate.Stop(); TimerEnemyAnimate.Stop(); TimerEnemyMove.Stop(); Enemy.Visible = false; Food.Visible = false; klucisImage = 0; TimerKlucisMelt.Start(); }
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; }