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(); }
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))); }