private void GameOver_Load(object sender, EventArgs e) { _resWidth = 800; _resHeight = 1000; Show(); Focus(); isRunning = true; _gr = CreateGraphics(); _backBuffer = new Bitmap(_resWidth, _resHeight); Gameover.MakeTransparent(Color.Fuchsia); Main.HighscoreForm.Difficult = Main.OptionsForm._Difficulty; for (int i = 0; i < 10; i++) { if (score >= Main.HighscoreForm.scores[i].score) { rank = i; Main.HighscoreForm.scores.Insert(i, new Score(score, EnemiesKilled, BossedKilled)); Inputbox input = new Inputbox(1); input.Show(); input.Focus(); break; } } GameLoop(); }
private void Close_Click(object sender, EventArgs e) { Inputbox input = new Inputbox(2); input.Show(); Pause = true; Continue.Enabled = true; Continue.Visible = true; Options.Enabled = true; Options.Visible = true; Help.Enabled = true; Help.Visible = true; Quit.Enabled = true; Quit.Visible = true; }
private void Close_Click(object sender, EventArgs e) { Inputbox input = new Inputbox(2); input.Show(); }