示例#1
0
文件: Game1.cs 项目: Chobin/SP
        private void CreateAll()
        {
            // Create out Maze, which is the entire "world" the player will interact with.
            _currentMaze = new FullMaze(this, Constants.Maze.Width, Constants.Maze.Height);
            _currentMaze.Initialize();

            // Initialize the player, informing it of it's starting point, somewhere within the maze, as the randomly generated maze tells us.
            _player = new Player(this, _currentMaze.StartPosition);
            _player.Initialize();
            //_oldPlayerPosition = _player.Position;
        }
示例#2
0
文件: Game1.cs 项目: Chobin/SP
        private void Reload()
        {
            _player.Dispose();
            _player = null;
            _currentMaze.Dispose();
            _currentMaze = null;

            CreateAll();
        }
示例#3
0
文件: Game1.cs 项目: Chobin/SP
        private void Reload(GameTime time)
        {
            _player.Dispose();
            _player = null;
            _currentMaze.Dispose();
            _currentMaze = null;

            CreateAll(time);
        }