コード例 #1
0
 // новая игра
 void NewGame(string Mode)
 {
     if (GameOver)
     {
         ClassConstants.Count_Points = 0;
         ClassConstants.Count_Balls  = 3;
         statusBallCount.Text        = "Мячей: " + ClassConstants.Count_Balls;
         statusPoints.Text           = "Очки: " + ClassConstants.Count_Points;
     }
     Moving.NewGameMode(Mode);
     Ball.BallParams(panel1.ClientRectangle);
     Racket.RacketParams(panel1.ClientRectangle);
     panel1.Invalidate();
     GameOver = false;
 }