Exemplo n.º 1
0
 public static void finish1(PictureBox player, Label finish, mazegame form)
 {
     if (player.Bounds.IntersectsWith(finish.Bounds))
     {
         MessageBox.Show("You win");
         player.Left = 25;
         player.Top  = 25;
     }
 }
Exemplo n.º 2
0
 public static void Timer(Label time, int count, mazegame form, Timer timer1)
 {
     if (count == -1)
     {
         MessageBox.Show("Game Over");
         timer1.Enabled = false;
         form.Close();
     }
     else
     {
         time.Text = Convert.ToString(count--);
     }
 }