Example #1
0
 //遊戲內容更新(即方塊下移)
 public void update()
 {
     if (curBoard.isDownEmpty(curBrick)) //方塊下面是否為空
     {
         BrickOneLineDown();             //是就往下
     }
     else
     {
         curBoard.pasteBrick(curBrick);//不是,就把他貼到棋盤上
         int tmp = curBoard.fullCheck();
         score += tmp * 100;
         newBrick();
     }
 }
Example #2
0
 public void update()                    //每秒更新一次狀態
 {
     if (curBoard.isDownEmpty(curBrick)) //方塊有沒有到底
     {
         BrickOneLineDown();
     }
     else
     {
         curBoard.pasteBrick(curBrick);
         int tmp = curBoard.fullCheck();
         score += tmp * 100;
         newBrick();
     }
 }