private void LoadLevel() { string file = string.Format("Content/{0}.txt", LevelHordConfig.LevelPath); LevelCreator creator = new LevelCreator(this); this.Background = new Background(); creator.GenerateLevel(file); this.Mario.HasBeenReached = true; }
private void LoadLevel() { string file = string.Format("Content/{0}.txt", this.LevelLoadString); LevelCreator creator = new LevelCreator(this); this.Background = new Background(); creator.GenerateLevel(file); if (OriginalPowerLevel == MarioPowerLevel.Fire || OriginalPowerLevel == MarioPowerLevel.Metal) { this.Mario.RespondToRequest(MarioActionRequest.GoFire); } else if (OriginalPowerLevel == MarioPowerLevel.Big) { this.Mario.RespondToRequest(MarioActionRequest.GoBig); } this.Mario.HasBeenReached = true; }