Beispiel #1
0
        // Move to bottom
        public void MoveBottom()
        {
            var moved = ArrayTransform.RotateMatrix(Grid, true);

            moved = CollapseLeft(moved);

            Grid = ArrayTransform.RotateMatrix(moved, false);

            // transform GameTransforms from left direction to right
            TransformBottom();
        }
Beispiel #2
0
        // Move to right
        public void MoveRight()
        {
            var moved = ArrayTransform.FlipVertical(Grid);

            moved = CollapseLeft(moved);

            Grid = ArrayTransform.FlipVertical(moved);

            // transform GameTransforms from left direction to right
            TransformRight();
        }