Exemple #1
0
        //function to load the end game screen
        public void EndGame()
        {
            Endscreen e = new Endscreen();

            e.score = points;
            e.Show();
            this.Close();
        }
Exemple #2
0
 //function to check if level is complete
 //loads a new level if it is
 public void LevelComplete()
 {
     if (CurrentBricks.Count == 0)
     {
         if (level + 1 == 16)
         {
             Endscreen e = new Endscreen();
             e.score    = points;
             e.beatGame = true;
             e.Show();
             this.Close();
             return;
         }
         Form1 f = new Form1();
         f.level  = level + 1;
         f.points = points;
         f.Show();
         this.Close();
     }
 }