Example #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     //Start the Timer
     GameSound     = new WindowsMediaPlayer();
     GameSound.URL = @"C:\Users\ahmet\OneDrive\Desktop\Are You Fast Enough\Assets\GameSong.mp3";
     GameSound.controls.play();
     GameSound.settings.setMode("loop", true);
     PopButton.Start();
 }
Example #2
0
 public void isGameOver()
 {
     PopButton.Stop();
     if (gameover == false)
     {
         gameover = true;
         PopButton.Start();
     }
     else
     {
         var x = ShowPoint();
         GameSound.controls.stop();
         close = new Form2(clickcount, this, formclickcount);
         close.Show();
     }
 }