Exemplo n.º 1
0
        private void StartNewGame()
        {
            lives = 3;
            score = 0;

            bricks = LevelConstructor.CreateLevel(currentLevel);
            CreateStopBoard();
            CreateInitialBall(stopBoard.DrawRectangle);
        }
Exemplo n.º 2
0
 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);
 }