private void ResetGame() { BlockView.Clear(); BallView.Clear(); GameState.Reset(3); // rest UI elements _paddle.Rotation = 0.0f; this.UpdateTimer(); this.UpdateCredits(); _mainLayout.Invalidate(); }
public void SpawnBall(float x, float y) { BallView ball = BallView.Create(_mainLayout, x, y); ball.Size = 14; }