private void StartNewGame() { lives = 3; score = 0; bricks = LevelConstructor.CreateLevel(currentLevel); CreateStopBoard(); CreateInitialBall(stopBoard.DrawRectangle); }
private void CreateNewLevel() { for (int i = bonuses.Count - 1; i >= 0; i--) { bonuses.RemoveAt(i); } for (int i = balls.Count - 1; i >= 0; i--) { balls.RemoveAt(i); } levelFinished = false; flamingBalls = false; bricks = LevelConstructor.CreateLevel(currentLevel); CreateStopBoard(); CreateInitialBall(stopBoard.DrawRectangle); }