Beispiel #1
0
 private void Form1_Shown(object sender, EventArgs e)
 {
     graphics = this.CreateGraphics();
     looseFrases.Add("Where did I go wrong?..");
     looseFrases.Add("Deadlock again?..");
     looseFrases.Add("It's so simple!");
     fild = new Fild(@"..\..\Levels\" + level.ToString() + ".txt");
     fild.drawFild(graphics);
 }
Beispiel #2
0
        private void Form1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            int x = e.Location.X;
            int y = e.Location.Y;

            fild = new Fild(@"..\..\Levels\" + level.ToString() + ".txt");
            fild.SetCursor(x, y, graphics);
            fild.drawFild(graphics);
        }
Beispiel #3
0
 public void ChangeLevel()
 {
     if (level == 6)
     {
         graphics.Clear(Color.LightBlue);
         fild = new Fild();
         graphics.DrawString("CONGRATULATIONS!\n   YOU BEAT\n   THE GAME!",
                             new Font("Cooper Black", 50), new SolidBrush(Color.DarkGoldenrod), new PointF(0, 100));
         level = 1;
         return;
     }
     level++;
     fild = new Fild(@"..\..\Levels\" + level.ToString() + ".txt");
     fild.drawFild(graphics);
 }