Exemplo n.º 1
0
    private void RemoveLines(List <int> lines)
    {
        foreach (int line in lines)
        {
            bool[,] matrix = grid.GetMatrix(0, 0, grid.Columns, line);

            well.RemoveLine(line);
            well.TranslateRegion(0, 0, matrix, new Point(0, 1));
            grid.ClearRegion(0, 0, matrix);
            grid.FillRegion(0, 1, matrix);

            linesRemoved++;

            // Play sound effect
            clearLineSoundFX.Play();
        }
    }