/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); // TODO: use this.Content to load your game content here Texture2D text = Content.Load <Texture2D>(@"Sprites\Hacker"); p = new Player(text); terminal = Content.Load <Texture2D>(@"Sprites\Terminal"); inst = Content.Load <Texture2D>(@"Sprites\instbar"); castBar = Content.Load <Texture2D>(@"Sprites\bars"); castBar2 = Content.Load <Texture2D>(@"Sprites\bars2"); Texture2D map = Content.Load <Texture2D>(@"Sprites\Map"); List <RoomObjects> a = new List <RoomObjects>(); a.Add(new RoomObjects(map, new Vector2(370, 365), 0, .39f)); Texture2D pump = Content.Load <Texture2D>(@"Sprites\Pumps"); a.Add(new RoomObjects(pump, new Vector2(400, 700), MathHelper.PiOver2, .25f)); all.Add(a); loadRoom(); loadLibrary(); loadCafe(); loadHotel(); font = Content.Load <SpriteFont>("Courier New"); bottomtext = new TextInterface(); sidetext = new TextInterface(); scoretext = new TextInterface(); scoretext.Initialize(inst, new Vector2(750, 10), new Vector2(100, 75), font, "Score: 0", 300f, .75f, Color.Red); sidetext.Initialize(inst, new Vector2(750, 250), new Vector2(100, 180), font, "View Message", 300f, .75f, Color.White); bottomtext.Initialize(inst, new Vector2(0, 752), new Vector2(750, 17), font, "New Message", 1450f, 0.65f, Color.White); Texture2D police = Content.Load <Texture2D>(@"Sprites\POLICE"); List <Vector2> temp = new List <Vector2>(); temp.Add(new Vector2((750 * .75f) - 60, 0)); temp.Add(new Vector2((750 * .75f) - 60, 550)); n.Add(new Police(police, new Vector2((750 * .75f) - 60, 0), temp)); menu = Content.Load <Texture2D>(@"Sprites\MENU"); last = Keyboard.GetState(); Texture2D end = Content.Load <Texture2D>(@"Sprites\endScreen"); List <RoomObjects> b = new List <RoomObjects>(); Texture2D end2 = Content.Load <Texture2D>(@"Sprites\endScreen2"); b.Add(new RoomObjects(end2, new Vector2(475, 400))); b.Add(new RoomObjects(end, new Vector2(475, 400))); all.Add(b); }