Skip to content

Instantly share code, notes, and snippets.

@Odonno
Created September 3, 2017 12:59
Show Gist options
  • Save Odonno/f5fbee5164b31ca5520bc530e3807bf9 to your computer and use it in GitHub Desktop.
Save Odonno/f5fbee5164b31ca5520bc530e3807bf9 to your computer and use it in GitHub Desktop.
LoadContent method in C# MonoGame
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
_pixeltexture = Content.Load<Texture2D>("pixel.png");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment