private void btnStartGame_Click(object sender, EventArgs e) { this.Close(); CodeGame codeGame = new CodeGame(); codeGame.Show(); }
public CodeGame() { InitializeComponent(); Moving.RotateFileSave rotatef = new Moving.RotateFileSave(); Moving.Rotate rotate = new Moving.Rotate(); rotate = rotatef.Load(); label1.Text = $"Top : {rotate.isTop}\nLeft : {rotate.isLeft}\nRight : {rotate.isRight}\nDown : {rotate.isBack}"; lastPos = new Point(); MyForm = this; GeneratePlayerPosition generatePlayerPosition = new GeneratePlayerPosition(); generatePlayerPosition.GenerateRandomPosition(); }