/// <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); xwing = Content.Load <Texture2D>("xwing (1)"); spelare = new Spelare(xwing); // TODO: use this.Content to load your game content here }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); spelaren = Content.Load <Texture2D>("spelaren"); enemy1 = Content.Load <Texture2D>("enemy1"); enemy2 = Content.Load <Texture2D>("enemy2"); enemy3 = Content.Load <Texture2D>("enemy3"); spelare = new Spelare(spelaren); enemyone = new Enemyone(enemy1); enemytwo = new Enemytwo(enemy2); enemythree = new Enemythree(enemy3); }