private void playButton_Click(object sender, EventArgs e) { Game.gameMode = false; Game.Initialize(); Game.player1 = new Player(); Game.player2 = new Player(); PvsP_Game pvspForm = new PvsP_Game(); pvspForm.Location = Location; pvspForm.Show(); Hide(); }
private void doneButton_Click(object sender, EventArgs e) { if (Game.playerSwitch) { Game.playerSwitch = !Game.playerSwitch; PvsP_Game pvspForm = new PvsP_Game(); pvspForm.Location = Location; pvspForm.Show(); Dispose(); } else { MainGame mainGame = new MainGame(); mainGame.Location = Location; mainGame.Show(); Dispose(); } }