private void checkForEnterPressed() { if (isEnterPressed == true) { worldMap = null; playerHandler = null; createNewWorld(); playerHandler = new PlayerHandler(this); playerHandler.CreateTheMark(worldMap, rando); CreateStartingLocation(); } }
protected override void Initialize() { //Create necessary helpers createHelpers(); //generate UI Element Positions GetUIElementPositions(); //Load all data dataManager.LoadAllData(); //Set up the world createNewWorld(); //Set up player character playerHandler.CreateTheMark(worldMap, rando); //Set up starting location CreateStartingLocation(); //Start the timer time.StartTimer(); //instantly center on location camera.InstantCenterOnLocation(new Vector2(travelHandler.currentGridLocation.X, travelHandler.currentGridLocation.Y)); base.Initialize(); }