//constructor FOR ROOM6 public Testing_room6(ContentManager Content, WindowWidth windowwidth, int windowheight, Player player) { //Asigns the variables m_content = Content; m_windowwidth = windowwidth; m_windowheight = windowheight; //sets the spawn location player.position = player.GenericSPWN; //Loads the sound file for from the content pipeline Wrong = Content.Load <SoundEffect>("Sound Files/Wrong"); Right = Content.Load <SoundEffect>("Sound Files/Correct"); //Loads the font from the font sheet Arial = Content.Load <SpriteFont>("Font"); //textures m_textBoxes = new List <Textbox>(); var texTextBox = Content.Load <Texture2D>("TextBox"); //textbox left var textbox = new Textbox(); textbox.OnCollision += WrongAnswerCollision; textbox.LoadContent(texTextBox, new Vector2(0, m_windowheight / 2 - texTextBox.Height / 2)); m_textBoxes.Add(textbox); //textbox middle textbox = new Textbox(); textbox.OnCollision += CorrectAnswerCollision; textbox.LoadContent(texTextBox, new Vector2(m_windowwidth.Val / 2 - texTextBox.Width / 2, m_windowheight / 2 - texTextBox.Height / 2)); m_textBoxes.Add(textbox); //textbox right textbox = new Textbox(); textbox.OnCollision += WrongAnswerCollision; textbox.LoadContent(texTextBox, new Vector2(m_windowwidth.Val - texTextBox.Width, m_windowheight / 2 - texTextBox.Height / 2)); m_textBoxes.Add(textbox); //textbox question left textbox = new Textbox(); textbox.LoadContent(texTextBox, new Vector2(m_windowwidth.Val / 2 - texTextBox.Width / 6, m_windowheight / 2 - texTextBox.Height * 2.5f)); m_textBoxes.Add(textbox); //textbox question right textbox = new Textbox(); textbox.LoadContent(texTextBox, new Vector2(m_windowwidth.Val / 2 - texTextBox.Width, m_windowheight / 2 - texTextBox.Height * 2.5f)); m_textBoxes.Add(textbox); //Newspaper m_Newspaper = new Newspaper(Content); m_Newspaper.LoadContent(m_Newspaper.texNewspaper, new Vector2(0, m_windowheight - m_Newspaper.texNewspaper.Height)); //Loads the speech class m_Speech = new MV_Speech(Content, m_windowwidth, m_windowheight); //Chooses which speech to start each level with m_Speech.StartTalking(5); }