public void Form1_KeyUp(object sender, KeyEventArgs e) { RihtMoveTimer.Stop(); LeftMoveTimer.Stop(); BackMoveTimer.Stop(); ForwardMoveTimer.Stop(); if (firstPlane) { Player.Image = Properties.Resources.Plane_1_place; } else if (secondPlane) { Player.Image = Properties.Resources.Plane_2_place; } else if (thirdPlane) { Player.Image = Properties.Resources.Plane_3_place; } }
public void gameover() { RihtMoveTimer.Stop(); LeftMoveTimer.Stop(); BackMoveTimer.Stop(); ForwardMoveTimer.Stop(); enemyMoveTimer.Stop(); isDead = true; Player.Visible = false; Play.Enabled = false; ReplayButton.Visible = true; ReplayButton.Enabled = true; PointsLabel.Visible = false; for (int i = 0; i < stars.Length; i++) { stars[i].Visible = false; } }