private void Form1_KeyUp(object sender, KeyEventArgs e) { ConChim.Image = Image.FromFile(@"chim.png"); ConChim.Size = new Size(122, 80); TimerChim2.Stop(); TimerChim2.Interval = 400; TimerChim2.Start(); }
private void Form1_KeyDown(object sender, KeyEventArgs e) { if (dem % 2 != 0) { SoundPlayer sound = new SoundPlayer("Fly.wav"); sound.LoadAsync(); sound.Play(); } TimerChim2.Stop(); //TimerChim3.Stop(); if (e.KeyCode == Keys.Space) { if (y_ConChim >= 0) { y_ConChim -= 50; ConChim.Image = Image.FromFile(@"chimlenpts.png"); ConChim.Size = new Size(111, 91); } } dem++; }