private void GameOver() { TimerAnimate.Stop(); TimerMove.Stop(); heroImageCount = 0; TimerHeroMelt.Start(); }
private void GameOver() { TimerHeroMove.Stop(); TimerHeroAnimate.Stop(); TimerEnemyAnimate.Stop(); TimerEnemyMove.Stop(); heroImage = 0; TimerHeroMelt.Start(); Food.Visible = false; }
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; }