예제 #1
0
        private void gameOverTimer_Tick(object sender, EventArgs e)
        {
            //decrease in y-value, the ball is falling down
            b.GameOverMove();

            //Once the ball hits the bottom line, explode into a variety of pieces
            if (b.y > this.Height - b.size)
            {
                ExplosionBs();
                gameOverLabel.Text = "Game Over";
            }

            ballcounter++;

            if (ballcounter == 10)
            {
                ExplosionBs();
            }


            Refresh();
        }