Пример #1
0
 private void ResetGame()
 {
     BlockView.Clear();
     BallView.Clear();
     GameState.Reset(3);
     // rest UI elements
     _paddle.Rotation = 0.0f;
     this.UpdateTimer();
     this.UpdateCredits();
     _mainLayout.Invalidate();
 }
Пример #2
0
        public void SpawnBall(float x, float y)
        {
            BallView ball = BallView.Create(_mainLayout, x, y);

            ball.Size = 14;
        }