/// <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. sprite = new SpriteBatch(GraphicsDevice); sprite = new SpriteBatch(graphics.GraphicsDevice); textTex = Content.Load<Texture2D>(@"gfx/arial"); text = new Text(textTex, sprite); nullTex = Content.Load<Texture2D>(@"gfx/1x1"); mapsTex = new Texture2D[1]; for (int i = 0; i < mapsTex.Length; i++) mapsTex[i] = Content.Load<Texture2D>(@"gfx/maps" + (i + 1).ToString()); iconsTex = Content.Load<Texture2D>(@"gfx/icons"); }
/// <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 font = Content.Load<SpriteFont>(@"Fonts\Arial"); text = new Text(spriteBatch, font); // text = new Text(textTex, sprite); nulLTex = Content.Load<Texture2D>(@"gfx/1x1"); mapsTex = new Texture2D[1]; for (int i = 0; i < mapsTex.Length; i++) mapsTex[i] = Content.Load<Texture2D>(@"gfx/maps" + (i + 1).ToString()); iconsTexture = Content.Load<Texture2D>(@"gfx/icons"); }