In order increase the levels after 10 ProjectilesDestroyed, i have set switch case, where for the 1st level after 10 projectiles Destroyed 2nd level is displayed but from 2nd level its increased for every 2 projectilesDestroyed and also the levels are increases beyond 10, how should i make it a difference of 10 to increases the levels. this is how i implemented
if (++_projectilesDestroyed > 5)
            {
                _projectilesDestroyed = 0;
            //  for(level=1; level<12; level++)
                switch(level)
                   {
                   case 1:
                       _projectilesDestroyed = 10;
                   System.out.println("case 1");
                                      break;
                   case 2:
                       _projectilesDestroyed = 20; 
                       System.out.println("case 2");
                       break;
                   case 3:
                       _projectilesDestroyed = 30;
                       System.out.println("case 3");
                       break;
                   case 4:
                       _projectilesDestroyed = 40;
                       System.out.println("case 4");
                       break;
                   case 5:
                       _projectilesDestroyed = 50;
                                         break;
                   case 6:
                       _projectilesDestroyed = 60;
                                    break;
                   case 7:
                       _projectilesDestroyed = 70;
                                   break;
                   case 8:
                       _projectilesDestroyed = 80;
                                      break;
                   case 9:
                       _projectilesDestroyed = 90;
                                    break;
                   case 10:
                       _projectilesDestroyed = 100;
                       System.out.println("case 10");
                       break;
                   default: break;
                   }
                 addLevel();
addLevel() method.
public void addLevel() {
    level = level + 1;
                showLevel(level);
          }
Even though if i add break; on all the cases from level 2, its getting updated for every 2 projectilesDestroyed but i want when it reached 10.
 
     
     
     
     
     
    