예제 #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     Start("H");
     System.Threading.Thread.Sleep(500);
     Movetmr.Start();
     Run();
 }
예제 #2
0
 private void button2_Click(object sender, EventArgs e)  //Starts game, Hided Info Screen
 {
     TrackBar.Focus();
     Start("H");
     System.Threading.Thread.Sleep(500);
     Movetmr.Start();
     Run();
 }
예제 #3
0
 void Checkcol() //Checks if The lander, when it reaches bottem has landed on the pad or not, and applys the correct message accordingly
 {
     if (Lander.Left >= Pad.Left && Lander.Width + Lander.Left <= Pad.Left + Pad.Width)
     {
         //Add Speed Value Check to see if too fast
         Won = true;
     }
     else
     {
         Won = false;
     }
     if (Won)
     {
         SuccessFaillbl.Text = "Congrats Captain " + CapsName + ", Mission Complete.";
     }
     else
     {
         SuccessFaillbl.Text = "Sorry Captain " + CapsName + ", Mission Failed.";
     }
     Movetmr.Stop();
     SuccessFaillbl.Show();
 }
예제 #4
0
 void Checkcol()
 {
     if (Lander.Left >= Pad.Width && Lander.Width <= Pad.Left + Pad.Width)
     {
         //Add Speed Value Check to see if too fast
         Won = true;
     }
     else
     {
         Won = false;
     }
     if (Won)
     {
         SuccessFaillbl.Text = "Congrats Captain " + CapsName + ", Mission Complete.";
     }
     else
     {
         SuccessFaillbl.Text = "Sorry Captain " + CapsName + ", Mission Failed.";
     }
     Movetmr.Stop();
     SuccessFaillbl.Show();
 }