Пример #1
0
        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            e.Graphics.Clear(Color.White);

            if (playing)
            {
                e.Graphics.DrawImage(image, new Point(0, 0));

                player1.Draw(e.Graphics);
                if (players > 1)
                {
                    player2.Draw(e.Graphics);
                }
                if (players == 3)
                {
                    player3.Draw(e.Graphics);
                }

                flies.Draw(e.Graphics);
            }

            else
            {
                e.Graphics.DrawImage(imageidle, new Point(0, 0));
            }
        }