public override void LoadContent() { base.LoadContent(); XmlManager <Player> playerLoader = new XmlManager <Player>(); XmlManager <World> worldLoader = new XmlManager <World>(); player = playerLoader.Load("Content/Load/Gameplay/Player.xml"); player.LoadContent(); world = worldLoader.Load("Content/Load/Gameplay/World/City_Heal.xml"); world.LoadContent(); player.Image.Position = world.CurrentMap.StartingPoint; player.Image.SpriteSheetEffect.CurrentFrame.Y = 0; player.Keys.Add("GameplayScreen_Blue"); if (ScreenManager.Instance.Party.Count > 0) { player.ChemicalManager.LoadParty(); foreach (string name in player.ChemicalManager.chemicalName) { player.ChemicalManager.GetChemical(name).Image.FadeEffect.IsActive = false; player.ChemicalManager.GetChemical(name).Image.SpriteSheetEffect.IsActive = true; player.ChemicalManager.GetChemical(name).Image.Alpha = 1.0f; } } camera = new Camera(); menuManager = new MenuManager(); menuManager.LoadContent("Content/Load/Menu/GameplayMenu.xml"); conversationManager = new ConversationManager(); conversationManager.LoadContent("Content/Load/Conversation/Intro.xml"); InitializeBindings(); spxManager = new SPXManager(); spxImage = new List <SPX>(); }
public override void LoadContent() { base.LoadContent(); XmlManager <Player> playerLoader = new XmlManager <Player>(); XmlManager <World> worldLoader = new XmlManager <World>(); player = playerLoader.Load("Content/Load/Gameplay/Player.xml"); player.LoadContent(); world = worldLoader.Load("Content/Load/Gameplay/World/Intro.xml"); world.LoadContent(); player.Image.Position = world.CurrentMap.StartingPoint; camera = new Camera(); menuManager = new MenuManager(); menuManager.LoadContent("Content/Load/Menu/GameplayMenu.xml"); menuManager.SetIntroduction(); conversationManager = new ConversationManager(); conversationManager.LoadContent("Content/Load/Conversation/Introduction.xml"); InitializeBindings(); XmlManager <Character> characterLoader = new XmlManager <Character>(); methane = new Character(); methane = characterLoader.Load("Content/Load/Gameplay/Methane.xml"); methane.LoadContent(); methane.Image.Position = new Vector2(7.5f, 4f) * 128; spxManager = new SPXManager(); spxImage = new List <SPX>(); moveLeft = false; moveUp = false; moveRight = false; moved = false; leaveRoom = false; pt1 = new Vector2(7.5f, 2f) * 128; pt2 = new Vector2(5f, 2f) * 128; pt3 = new Vector2(5f, -1f) * 128; pt4 = new Vector2(4f, 5f) * 128; pt5 = new Vector2(8f, 5f) * 128; }