コード例 #1
0
        private void btnStartGame_Click(object sender, EventArgs e)
        {
            this.Close();
            CodeGame codeGame = new CodeGame();

            codeGame.Show();
        }
コード例 #2
0
ファイル: CodeGame.cs プロジェクト: Arbross/CodeRobotSurvival
        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();
        }