Created
September 3, 2017 12:59
-
-
Save Odonno/f5fbee5164b31ca5520bc530e3807bf9 to your computer and use it in GitHub Desktop.
LoadContent method in C# MonoGame
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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