Exemple #1
0
        }//생성자

        public void GameStartFunc()
        {
            user = new User(new PictureBox(), Image.FromFile("user.gif"), "user", new Point(380, 260), new Size(50, 60));

            _gameForm = new ViewForm();
            _gameForm.Controls.Add(user.Sprite_Picture);

            _gameOver = new GameOver();
            _gameOver.SetController(this);

            itemList     = new List <Item>();
            obstacleList = new List <Obstacle>();

            _gameController = new SpriteController(_gameForm, _menuForm, _gameOver, _rankMenu, user, itemList, obstacleList);

            _menuForm.Visible = false;
            _gameForm.Show();
        }
 public void SetController(SpriteController controller)
 {
     this._controller = controller;
 }