/// <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); playerTexture = Content.Load <Texture2D>("players"); tileTexture = Content.Load <Texture2D>("tiles"); fireballTexture = Content.Load <Texture2D>("fireballs"); chestTexture = Content.Load <Texture2D>("chest"); stuffTexture = Content.Load <Texture2D>("stuff"); slotTexture = Content.Load <Texture2D>("slot"); swordTexture = Content.Load <Texture2D>("sword"); smoothLightEffect = Content.Load <Effect>("light"); smoothLightMapperEffect = Content.Load <Effect>("lightMapper"); font14 = Content.Load <SpriteFont>("font14"); font11 = Content.Load <SpriteFont>("font11"); whitePixel = new Texture2D(GraphicsDevice, 1, 1); whitePixel.SetData(new Color[] { Color.White }); particleController.LoadContent(Content); gameRegistry.SetTexture("tiles", tileTexture); gameRegistry.SetTexture("chest", chestTexture); gameRegistry.SetTexture("whitePixel", whitePixel); }