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; }
private void Reload() { _player.Dispose(); _player = null; _currentMaze.Dispose(); _currentMaze = null; CreateAll(); }
private void Reload(GameTime time) { _player.Dispose(); _player = null; _currentMaze.Dispose(); _currentMaze = null; CreateAll(time); }