private void Action_Tick(object sender, EventArgs e) { timeScore = (timeScore + 1) % timeScoreLoop; if (timeScore == 0) { score++; } ball.Run(GameBox, board, bricks, ref score); if (ball.touchedBound) { Action.Stop(); GameOver(); } GameBox.Refresh(); if (UpdateCheck()) { ball.SpeedUpdate(); } ScoreRec.Text = score.ToString("D5"); DateTime nowTime = System.DateTime.Now; TimeSpan gameTime = nowTime - beginTime; GameTime.Text = System.DateTime.MinValue.AddMilliseconds(gameTime.TotalMilliseconds).ToLongTimeString(); }