Exemplo n.º 1
0
        // draw each of the shapes, for the bricks, if its null, it wont be drawn because it will be considered broken
        public void DrawShapes()
        {
            border.DrawBorder(g);
            paddle.DrawPaddle(g);
            ball.DrawBall(g);

            for (int i = 0; i < bricksPerRow; i++)
            {
                if (firstRow[i] != null)
                {
                    firstRow[i].DrawBrick(g);
                }
                if (secondRow[i] != null)
                {
                    secondRow[i].DrawBrick(g);
                }
            }
        }