Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <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);
- Services.AddService(typeof(SpriteBatch), spriteBatch);
- mario = Content.Load<Texture2D>("super-mario");
- blocco = Content.Load<Texture2D>("blocco");
- player = new Player(this);
- player.Icon = mario;
- // TODO: use this.Content to load your game content here
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement