Example #1
0
        public void CurrentTetroMinoDraw()
        {
            Point position = currentTetromino.GetCurrentPosition();

            Point[] shape = currentTetromino.GetCurrentShape();
            Brush   color = currentTetromino.GetCurrentColor();

            foreach (Point S in shape)
            {
                blockControls[(int)(S.X + position.X) + ((cols / 2) - 1),
                              (int)(S.Y + position.Y) + 2].Background = color;
            }
        }