Example #1
0
 private void FormMain_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Space)
     {
         if (isOver)
         {
             reBeginGame();
             return;
         }
         bird.Up();
         engine.PlaySound(Properties.Resources.wing);
     }
 }