/// <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); p.Load(Content); p.SetPlayerPos(spriteBatch); hud.Load(Content); mainMenu = new MainMenu(Content, graphics, ch); intro.Load(Content, graphics); oMenu.Load(); mainMenu.Load(Content, graphicsDevice); background = new Background(GraphicsDevice, Content); loadingScreen = new LoadingScreen(Content, graphics.GraphicsDevice); alien = new Alien(Content.Load<Texture2D>("AlienShip"), new Vector2(50, 100), Vector2.Zero, 0f, 2f, Content.Load<Texture2D>("AlienBullet")); foreach (Weapon wep in p.weapList) { wep.Load(Content, p.GetDirection()); } }