Пример #1
0
        public mainForm()
        {
            InitializeComponent();

            sdgButton1.Text = "Restart";
            sdgButton2.Text = "Exit Game";

            this.Location = new Point(0, 0);

            SetStyle(ControlStyles.UserPaint, true);

            SetStyle(ControlStyles.AllPaintingInWmPaint, true);

            SetStyle(ControlStyles.DoubleBuffer, true);
            magGlass = new MagGlass();
            magGlass.Show();
            mirror = new Mirror();
            mirror.Show();


            b = new SolidBrush(Color.FromArgb(90, Color.Yellow));
            p = new Pen(b, 30);



            sdgManager1.Mice[0].Visible = false;
            sdgManager1.Mice[1].Visible = false;
            sdgButton1.Visible          = false;
            sdgButton2.Visible          = false;
            sun = new Point(panel2.Location.X + 150, panel2.Location.Y + 110);

            initializeBugs();
            levelLabel.Text = level.ToString();
            timer1.Start();
        }
Пример #2
0
        public mainForm()
        {
            InitializeComponent();

            sdgButton1.Text = "Restart";
            sdgButton2.Text = "Exit Game";

            this.Location = new Point(0, 0);

            SetStyle(ControlStyles.UserPaint, true);

            SetStyle(ControlStyles.AllPaintingInWmPaint, true);

            SetStyle(ControlStyles.DoubleBuffer, true);
            magGlass = new MagGlass();
            magGlass.Show();
            mirror = new Mirror();
            mirror.Show();

            b = new SolidBrush(Color.FromArgb(90, Color.Yellow));
            p =  new Pen(b, 30);

            sdgManager1.Mice[0].Visible = false;
            sdgManager1.Mice[1].Visible = false;
            sdgButton1.Visible = false;
            sdgButton2.Visible = false;
            sun = new Point(panel2.Location.X + 150, panel2.Location.Y + 110);

            initializeBugs();
            levelLabel.Text = level.ToString();
            timer1.Start();
        }
Пример #3
0
 private void sdgButton1_sdgClick(object sender, int userID)
 {
     SPEED_FLOOR   = 5;
     SPEED_CEILING = 20;
     initializeBugs();
     killCount             = 1;
     score                 = 0;
     level                 = 0;
     PLAY_TIME             = GAME_SECS * 1000;
     gameOverPanel.Visible = false;
     magGlass              = new MagGlass();
     magGlass.Show();
     mirror = new Mirror();
     mirror.Show();
     sdgManager1.Mice[0].Visible = false;
     sdgManager1.Mice[1].Visible = false;
     sdgButton1.Visible          = false;
     sdgButton2.Visible          = false;
     score            = 0;
     level            = 1;
     score_label.Text = score.ToString();
     levelLabel.Text  = level.ToString();
     timer1.Start();
 }
Пример #4
0
 private void sdgButton1_sdgClick(object sender, int userID)
 {
     SPEED_FLOOR = 5;
     SPEED_CEILING = 20;
     initializeBugs();
     killCount = 1;
     score = 0;
     level = 0;
     PLAY_TIME = GAME_SECS * 1000;
     gameOverPanel.Visible = false;
     magGlass = new MagGlass();
     magGlass.Show();
     mirror = new Mirror();
     mirror.Show();
     sdgManager1.Mice[0].Visible = false;
     sdgManager1.Mice[1].Visible = false;
     sdgButton1.Visible = false;
     sdgButton2.Visible = false;
     score = 0;
     level = 1;
     score_label.Text = score.ToString();
     levelLabel.Text = level.ToString();
     timer1.Start();
 }