Esempio n. 1
0
 /// <summary>
 /// Catches LevelUp events.
 /// </summary>
 /// <param name="e">Contains the current level of the game</param>
 public void LevelUpCatch(LevelUpArgs e)
 {
     if (e.level > 1)
     {
         blockWait += Game.RowMax;
         if (blockRatio < (1.0 / 5.0))
         {
             blockRatio += 1.0 / 50.0;
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Updates the Level display and speeds up the game.
 /// </summary>
 /// <param name="e">Contains the value of the new level</param>
 private void LevelUp(LevelUpArgs e)
 {
     if (tmrPlay.Interval > 40)
     {
         tmrPlay.Interval -= 10;
     }
     lblLevel.Text = e.level.ToString();
 }