コード例 #1
0
        public void AddGamePieceToBoard()
        {
            for (int a = 0; a < 5; a++)
            {
                for (int b = 0; b < 5; b++)
                {
                    if (ActivePiece.PieceBlocks[a, b].Type != BlockTypes.Empty)
                    {
                        SetBoardBlock(ActivePiece.PieceBlocks[a, b].Position, ActivePiece.PieceBlocks[a, b].BlockColor);
                    }
                }
            }

            if (ActivePiece.Position.Y <= BlockGrid[3, 0].Position.Y)
            {
                game.GameOver();
            }
            else
            {
                NewActivePiece();
                slamming = false;
            }
        }