Advertisement
wandrake

Untitled

Aug 30th, 2012
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1.         /// <summary>
  2.         /// LoadContent will be called once per game and is the place to load
  3.         /// all of your content.
  4.         /// </summary>
  5.         protected override void LoadContent()
  6.         {
  7.             // Create a new SpriteBatch, which can be used to draw textures.
  8.             spriteBatch = new SpriteBatch(GraphicsDevice);
  9.             Services.AddService(typeof(SpriteBatch), spriteBatch);
  10.  
  11.             mario = Content.Load<Texture2D>("super-mario");
  12.             blocco = Content.Load<Texture2D>("blocco");
  13.  
  14.             player = new Player(this);
  15.             player.Icon = mario;
  16.             // TODO: use this.Content to load your game content here
  17.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement