示例#1
0
    public static void fitPiece(BlockGroup blockGroup, GameField field)
    {
        bool goDown()
        {
            if (blockControl.blk_cnj_foreach(blockControl.blk_solo_checkDown, blockGroup.GetBlocks(), 0))
            {
                blockControl.blk_cnj_foreach(blockControl.blk_solo_moveDown, blockGroup.GetBlocks(), 0);
                blockGroup.SetLocation(new Vector2Int(blockGroup.GetLocation().x, -1));
                return(goDown());
            }
            return(true);
        }

        goDown();
    }
示例#2
0
 public static void blk_drawGhost(BlockGroup blkG, int col, int row)
 {
     blkG.AddBlock(GraphicDefs.ght_draw(blkG.GetField()).Move(blkG.GetLocation().x + col + ((blkG.GetLocation().y - row) * blkG.GetField().GetDimentions().width)));
 }