Ejemplo n.º 1
0
        private void SecondLevel()
        {
            restartLevel = 2;
            pig          = 1;
            usersStep    = 1;

            Refresh();

            button4.Left = 11;
            button4.Top  = 11;
            button5.Top  = 11;

            button2.Visible = false;
            button3.Visible = true;

            levelSecond = new CirclesListCreator(81);
            SecondLevel secondLevel = new SecondLevel(i2, delta_i2, j2, delta_j2);

            arrayCircles2 = levelSecond.GetList();

            secondLevel.DrawBackground(g);
            Refresh();
            secondLevel.Draw(g, arrayCircles2);
            Refresh();

            canDoSecondStep = true;
        }
Ejemplo n.º 2
0
        private void FirstLevel()
        {
            button1.Visible = false;
            button5.Visible = true;

            bmp = new Bitmap(pictureBox1.Width, pictureBox1.Height);
            g   = Graphics.FromImage(bmp);

            levelFirst = new CirclesListCreator();
            FirstLevel firstLevel = new FirstLevel(i, delta_i, j, delta_j);

            arrayCircles = levelFirst.GetList();

            firstLevel.DrawBackground(g);
            firstLevel.Draw(g, arrayCircles);

            Refresh();

            mainManu = false;

            pictureBox1.Image = bmp;
        }