public void jongoTime() { Graphics graphics = panel1.CreateGraphics(); Assembly executingAssembly = Assembly.GetExecutingAssembly(); Stream manifestResourceStream = executingAssembly.GetManifestResourceStream("WindowsFormsApplication1.Resources.buddy.png"); Image image = Image.FromStream(manifestResourceStream); manifestResourceStream = executingAssembly.GetManifestResourceStream("WindowsFormsApplication1.Resources.world.png"); Image image2 = Image.FromStream(manifestResourceStream); string[] manifestResourceNames = executingAssembly.GetManifestResourceNames(); string[] array = manifestResourceNames; foreach (string value in array) { Console.WriteLine(value); } BolleHeaven bolleHeaven = new BolleHeaven(); for (int num = 15; num >= 0; num--) { if (cula < 4) { cula = 600; } cula--; for (int num2 = trælle.getJohn().Count - 1; num2 > 0; num2--) { if (ibli < 3) { ibli = 300; } else { ibli -= 2; } if (abli < 3) { abli = 6000; } else { abli -= 2; } tookie--; trælle.getJohn()[num2].changeCourse(); trælle.getJohn()[num2].moodChange(trælle.getJohn()[num2].changeCourse(), new Juklas()); timetoJongoisme(); switch (time.Next(6)) { case 0: graphics.FillEllipse(new SolidBrush(trælle.getJohn()[num2].getColor()), new Rectangle(trælle.getJohn()[num2].getPoint(), trælle.getJohn()[num2].getSize())); break; case 1: for (int num6 = 100; num6 >= 0; num6--) { Random random = new Random(); graphics.FillClosedCurve(new SolidBrush(Color.FromArgb(random.Next(150), random.Next(25) + 200, random.Next(15) + 200, random.Next(40) + 215)), createPoints(3)); } break; case 2: for (int num5 = 40; num5 >= 0; num5--) { Point[] points = createPoints(4, 0); graphics.FillPolygon(new SolidBrush(Color.FromArgb(new Random().Next(180), new Random().Next(40) + 200, new Random().Next(40) + 200, new Random().Next(55) + 200)), points); } break; case 3: graphics.DrawLine(new Pen(new SolidBrush(Color.FromArgb(50, 0, 0, 0))), junkie.Next(900), junkie.Next(700), junkie.Next(900), junkie.Next(700)); graphics.DrawLine(new Pen(new SolidBrush(Color.FromArgb(50, 0, 0, 0))), junkie.Next(900), junkie.Next(10), junkie.Next(100) + 800, junkie.Next(10) + 700); graphics.DrawLine(new Pen(new SolidBrush(Color.FromArgb(50, 0, 0, 0))), junkie.Next(10), junkie.Next(10), junkie.Next(800) + 10, junkie.Next(10) + 700); graphics.DrawLine(new Pen(new SolidBrush(Color.FromArgb(50, 0, 0, 0))), 450, 350, junkie.Next(900), junkie.Next(700)); break; case 4: if (junkie.Next(cula) == 0) { graphics.DrawString(bolleHeaven.gEn2Name(245, junkie), new Font("Segoe Script", 42f, FontStyle.Bold), Brushes.White, new PointF(junkie.Next(400) + 10, junkie.Next(490) + 10)); } if (junkie.Next(800) == 0) { graphics.DrawString("F\u00b4un \u00b4a zar-", new Font("Segoe Script", 42f, FontStyle.Bold), Brushes.White, new PointF(350f, 20f)); cola = 1; } if (junkie.Next(400) == 0) { graphics.DrawString(bolleHeaven.gEn2Name(245, junkie), new Font("Segoe Script", 72f, FontStyle.Bold), new LinearGradientBrush(new Point(0, 0), new Point(600, 600), Color.White, Color.DarkSlateGray), new PointF(250 - junkie.Next(230), 400 - junkie.Next(200))); } break; case 5: { int num3 = -200; int num4 = 1000; if (tookie < 0) { tookie = Børnetid.tandemspring(4000); for (int j = 0; j < 20; j++) { graphics.FillEllipse(new SolidBrush(Color.FromArgb(junkie.Next(60) + 100, junkie.Next(25) + 230, junkie.Next(25) + 230, junkie.Next(25) + 230)), new Rectangle(junkie.Next(100) + num3, junkie.Next(50) + num3, junkie.Next(1000) + num4, junkie.Next(1000) + num4)); } } break; } } } if (junkie.Next(abli) > 1000) { graphics.DrawImage(image2, (int)(200.0 * Math.Sin(junkie.Next(10000))) + 200, 50 + (int)(200.0 * Math.Sin(junkie.Next(10000)))); } if (junkie.Next(ibli) > 40) { graphics.DrawImage(image, new Rectangle(new Point(400 + (int)(100.0 * Math.Sin(junkie.Next(10000))), 350 + (int)(200.0 * Math.Sin(junkie.Next(10000)))), new Size(new Point(100 + (int)(50.0 * Math.Sin(junkie.Next(10000))), 150 + (int)(50.0 * Math.Sin(junkie.Next(10000))))))); } } }
public void jongoTime() { if (wplayer.playState != WMPPlayState.wmppsPlaying) { comboBox1.SelectedIndex = junkie.Next(8); } playMP3(); if (trælle == null) { newJongo(); } Assembly executingAssembly = Assembly.GetExecutingAssembly(); Stream manifestResourceStream = executingAssembly.GetManifestResourceStream("WindowsFormsApplication1.Resources.Images.buddy.png"); Image image = Image.FromStream(manifestResourceStream); manifestResourceStream = executingAssembly.GetManifestResourceStream("WindowsFormsApplication1.Resources.Images.world.png"); Image image2 = Image.FromStream(manifestResourceStream); string[] manifestResourceNames = executingAssembly.GetManifestResourceNames(); string[] array = manifestResourceNames; foreach (string text in array) { } BolleHeaven bolleHeaven = new BolleHeaven(this); for (int num = junkie.Next(4) + 22; num >= 0; num--) { if (junkie.Next(2) == 0) { bolleHeaven = new BolleHeaven(this); } if (cula < 4) { cula = 200; } cula--; for (int num2 = trælle.getJohn().Count - 1; num2 > 0; num2--) { if (ibli < 3) { ibli = 300; } else { ibli -= 2; } if (abli < 3) { abli = 6000; } else { abli -= 2; } tookie--; trælle.getJohn()[num2].changeCourse(); trælle.getJohn()[num2].moodChange(trælle.getJohn()[num2].changeCourse(), new Juklas(this)); timetoJongoisme(); switch (time.Next(8)) { case 0: gfx.FillEllipse(new SolidBrush(trælle.getJohn()[num2].getColor()), new Rectangle(trælle.getJohn()[num2].getPoint(), trælle.getJohn()[num2].getSize())); break; case 1: for (int num4 = 100; num4 >= 0; num4--) { Random random = new Random(); gfx.FillClosedCurve(new SolidBrush(Color.FromArgb(random.Next(150), random.Next(25) + 200, random.Next(15) + 200, random.Next(40) + 215)), createPoints(3)); } break; case 2: for (int num3 = 40; num3 >= 0; num3--) { Point[] points = createPoints(4, 0); gfx.FillPolygon(new SolidBrush(Color.FromArgb(new Random().Next(180), new Random().Next(40) + 200, new Random().Next(40) + 200, new Random().Next(55) + 200)), points); } break; case 3: gfx.DrawLine(new Pen(new SolidBrush(Color.FromArgb(50, 0, 0, 0))), junkie.Next(900), junkie.Next(700), junkie.Next(900), junkie.Next(700)); gfx.DrawLine(new Pen(new SolidBrush(Color.FromArgb(50, 0, 0, 0))), junkie.Next(900), junkie.Next(10), junkie.Next(100) + 800, junkie.Next(10) + 700); gfx.DrawLine(new Pen(new SolidBrush(Color.FromArgb(50, 0, 0, 0))), junkie.Next(10), junkie.Next(10), junkie.Next(800) + 10, junkie.Next(10) + 700); gfx.DrawLine(new Pen(new SolidBrush(Color.FromArgb(50, 0, 0, 0))), 450, 350, junkie.Next(900), junkie.Next(700)); break; case 4: if (junkie.Next(cula) <= 20) { if (junkie.Next(3) == 0) { gfx.DrawString(bolleHeaven.gEn2Name(245, junkie) + " " + bolleHeaven.gEn2Name(245, junkie), new Font("Segoe Script", 42f, FontStyle.Bold), Brushes.White, new PointF(1000 - junkie.Next(1000), 1600 - junkie.Next(1600))); } else { gfx.DrawString(bolleHeaven.gEn2Name(245, junkie), new Font("Segoe Script", 42f, FontStyle.Bold), Brushes.White, new PointF(junkie.Next(1000) + 10, junkie.Next(1600) + 10)); } } if (junkie.Next(1200) == 0) { gfx.DrawString("B\u00b4or te med\u00b4 bte-læ-s\u00b4en", new Font("Segoe Script", 42f, FontStyle.Bold), Brushes.White, new PointF(new Random().Next(250) + 100, new Random().Next(350))); cola = 1; } if (junkie.Next(400) == 0) { gfx.DrawString(bolleHeaven.gEn2Name(245, junkie), new Font("Segoe Script", 72f, FontStyle.Bold), new LinearGradientBrush(new Point(0, 0), new Point(600, 600), Color.White, Color.DarkSlateGray), new PointF(1000 - junkie.Next(1000), 1600 - junkie.Next(1600))); } break; case 5: { int num5 = -200; int num6 = 1000; if (tookie < 0) { tookie = Børnetid.tandemspring(4000); for (int j = 0; j < 20; j++) { gfx.FillEllipse(new SolidBrush(Color.FromArgb(junkie.Next(60) + 100, junkie.Next(25) + 230, junkie.Next(25) + 230, junkie.Next(25) + 230)), new Rectangle(junkie.Next(100) + num5, junkie.Next(50) + num5, junkie.Next(1000) + num6, junkie.Next(1000) + num6)); } } break; } case 6: if (junkie.Next(abli) > 4500) { gfx.DrawImage(image2, (int)(200.0 * Math.Sin(junkie.Next(10000))) + 200, 50 + (int)(200.0 * Math.Sin(junkie.Next(10000)))); } if (junkie.Next(ibli) > 150) { gfx.DrawImage(image, new Rectangle(new Point(400 + (int)(100.0 * Math.Sin(junkie.Next(10000))), 350 + (int)(200.0 * Math.Sin(junkie.Next(10000)))), new Size(new Point(60 + (int)(10.0 * Math.Sin(junkie.Next(10000))), 60 + (int)(5.0 * Math.Sin(junkie.Next(10000))))))); } break; case 7: if (junkie.Next(5) == 0) { BlackStrangeCloud(100); } break; } } } }