Exemplo n.º 1
0
        protected override void OnPaint(PaintEventArgs e)
        {
            Graphics g = e.Graphics;

            background.Draw(g, background.Rect, Color.Black);
            g.DrawString("Pong", new Font("Times New Roman", 25.0f), background.GetBrushColor(Color.Gray), new PointF(350f, 50f));
            g.DrawString("  1P  ", new Font("Times New Roman", 25.0f), background.GetBrushColor(onePlayerColor), new PointF(350f, 100f));
            g.DrawString("  2P  ", new Font("Times New Roman", 25.0f), background.GetBrushColor(twoPlayerColor), new PointF(350f, 150f));
        }