Exemple #1
0
        //aktuellen Stein zeichnen
        private void currTetraminoDraw()
        {
            //Position zum Zeichnen
            Point Position = currTetramino.getCurrPosition();

            //was zeichnen?
            Point[] Shape = currTetramino.getCurrShape();
            //Farbe
            Brush Color = currTetramino.getCurrColor();

            foreach (Point S in Shape)
            {
                BlockControls[(int)(S.X + Position.X) + ((Cols / 2) - 1), (int)(S.Y + Position.Y) + 2].Background = Color;
            }
        }