Example #1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (game.MoveDownCheck(current, canvus))
     {
         current.MoveDown();
     }
     else
     {
         if (current.isBomb)
         {
             game.Bombard(current, canvus);
         }
         else
         {
             game.FixCube(current, canvus);
             game.ClearLine(canvus, ref score);
         }
         pictureBox1.Refresh();
         current = next;
         next    = game.RandomPattern2();
         End_Paint();
         Next_Paint();
         Score_Paint();
     }
     All_Paint(pe);
 }