Exemplo n.º 1
0
        private void newBrick()//產生新的方塊
        {
            int type  = r.Next(1, 8);
            int color = r.Next(1, 7);

            curBrick = new Brick();
            curBrick.setShape((Tetrominoes)type, colorTable[color]);
            if (curBoard.deadCheck(curBrick))
            {
                GameView.gameOver();
            }
            else
            {
                GameView.update(curBoard, curBrick);
            }
        }