public static void Main()
int w = Polygon.GetClientWidth();
int h = Polygon.GetClientHeight();
Point upright = new Point(1000, 1000);
Point upleft = new Point(-1000, 1000);
Point downright = new Point(1000, -h / 2.43);
Point downleft = new Point(-1000, -h / 2.43);
Polygon reka = new Polygon(upright, upleft, downleft, downright);
reka.SetBrushColor(System.Drawing.Color.LightSkyBlue);
Point upright2 = new Point(1000, -h / 2.43);
Point upleft2 = new Point(-1000, -h / 2.43);
Point downright2 = new Point(1000, -1000);
Point downleft2 = new Point(-1000, -1000);
Polygon reka2 = new Polygon(upright2, upleft2, downleft2, downright2);
reka2.SetBrushColor(System.Drawing.Color.PeachPuff);
Polygon pM = new Polygon(20, 5);
pM.Move(-w / 3, -h / 2.5);
pM.SetBrushColor(System.Drawing.Color.Yellow);
Polygon dis = new Polygon(20, 5);
dis.Move(w / 2, -h / 2.5);
dis.SetBrushColor(System.Drawing.Color.Red);
Polygon dis2 = new Polygon(20, 5);
dis2.Move(w / 2, -h / 2.5);
dis2.SetBrushColor(System.Drawing.Color.Red);
Point xLeft = new Point(-w, -h / 2.43);
Point xRight = new Point(w, -h / 2.43);
Polygon xAxis = new Polygon(xLeft, xRight);
while (dis.GetCenter().GetX() != -w / 3 || pM.GetCenter().GetY() != -h / 2.5)
if (dis.GetCenter().GetX() <= -w / 2)
if (Console.KeyAvailable)
ConsoleKeyInfo key = Console.ReadKey();
for (int count = 0; count != 50; count++)
for (int count2 = 50; count2 != 0; count2--)
Console.WriteLine("you lost.... try again :( ");