示例#1
0
文件: Form1.cs 项目: tram288/Stacker
        private void Form1_Load(object sender, EventArgs e)
        {
            Timer_Game.Start();
            HideBlock();

            YouWinLabel.Hide();
            GameOverLabel.Hide();
        }
示例#2
0
 //when you click on the security button it sends the seized bag back to the conveyer
 private void buttonSec_Click(object sender, EventArgs e)
 {
     switchTimer.Stop();
     pb_luggage.Visible = true;
     Timer_Game.Start();
     blink2.Stop();
     buttonSec.BackColor = Color.Blue;
     switchTimer.Start();
 }
示例#3
0
文件: Form1.cs 项目: tram288/Stacker
 private void Timer_Game2_Tick(object sender, EventArgs e)
 {
     moveBlock(-1);
     if (block.Left < -5)
     {
         Timer_Game2.Stop();
         Timer_Game.Start();
     }
 }
示例#4
0
 private void Form1_Load(object sender, EventArgs e)
 {
     Timer_Game.Interval = 1;      //red square timer
     Timer_Game.Start();
     timerBag4.Interval = 1;       //orange square timer(from check in 2)
     timer2.Interval    = 14100;   //timer for bag stuck randomization
     timer2.Start();
     switchTimer.Interval = 11200; //timer for SECURITY CHECK randomization
     switchTimer.Start();
     pb_luggage4.Visible = false;  //shows the first bag of check in 2
     pb_luggage5.Visible = false;  //shows the second bag of check in 2
     pb_luggage6.Visible = false;  //shows the third bag of check in 2
 }