/// <summary> /// load assets /// </summary> public override void LoadContent() { SoundManager.PlaySong("Credits", true); belowLogo = ImageTools.LoadTexture2D("Graphics/Logos/below_logo"); belowVector = ImageTools.CenterImage_vect(belowLogo); sharkboyLogo = ImageTools.LoadTexture2D("Graphics/Logos/sharkboylogo"); sharkVector = new Vector2(ImageTools.CenterImage_vect(sharkboyLogo).X, 1400); cogThoughtLogo = ImageTools.LoadTexture2D("Graphics/Logos/cognitive"); cogVector = new Vector2(ImageTools.CenterImage(cogThoughtLogo).X, 3100); hv1 = new Vector2(TextTools.CenterText(ScreenManager.MediumFont, h1).X, 5000); hv2 = new Vector2(TextTools.CenterText(ScreenManager.SmallFont, h2).X, 5070); av1 = new Vector2(TextTools.CenterText(ScreenManager.MediumFont, a1).X, 6000); av2 = new Vector2(TextTools.CenterText(ScreenManager.SmallFont, a2).X, 6070); dv1 = new Vector2(TextTools.CenterText(ScreenManager.MediumFont, d1).X, 7000); dv2 = new Vector2(TextTools.CenterText(ScreenManager.SmallFont, d2).X, 7070); sv1 = new Vector2(TextTools.CenterText(ScreenManager.MediumFont, s1).X, 8000); sv2 = new Vector2(TextTools.CenterText(ScreenManager.SmallFont, s2).X, 8070); cv1 = new Vector2(TextTools.CenterText(ScreenManager.SmallFont, c1).X, 9000); cv2 = new Vector2(TextTools.CenterText(ScreenManager.SmallFont, c2).X, 9070); base.LoadContent(); }
/// <summary> /// draw over lighting /// </summary> /// <param name="gameTime"></param> public override void DrawOverLighting(GameTime gameTime) { startButton.Draw(); optionsButton.Draw(); creditsButton.Draw(); exitButton.Draw(); resetButton.Draw(); ScreenManager.SpriteBatch.Begin(); ScreenManager.SpriteBatch.Draw(belowLogo, new Vector2(ImageTools.CenterImage_vect(belowLogo).X, 100), Color.White); ScreenManager.SpriteBatch.End(); base.DrawOverLighting(gameTime); }
/// <summary> /// load graphical content and load the dialogues and characters talking in the script /// </summary> public void LoadDBox() { box = ImageTools.LoadTexture2D("Graphics/GUI/dbox"); boxLocation = new Vector2(ImageTools.CenterImage_vect(box).X, 650); portraitLocation = new Vector2(boxLocation.X + 1, boxLocation.Y + 1); //split the script up foreach (string line in script) { string[] splitLine = line.Split('='); dialogues.Add(splitLine[1]); whoTalking.Add(splitLine[0]); } //custom coloring for (int i = 0; i < dialogues.Count; i++) { if (dialogues[i][0] == '*') { if (dialogues[i][1] == 'b') { textColors.Add(Color.Aqua); } else if (dialogues[i][1] == 'r') { textColors.Add(Color.Red); } dialogues[i] = dialogues[i].Remove(0, 2); } else { textColors.Add(Color.White); } } currentPortrait = ImageTools.LoadTexture2D("Characters/Portraits/" + whoTalking[0] + "Portrait"); }