예제 #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);
        }