Skip to content

Instantly share code, notes, and snippets.

@Odonno
Created September 3, 2017 13:04
Show Gist options
  • Save Odonno/4fda5a1703d187e416f026cc79dc3407 to your computer and use it in GitHub Desktop.
Save Odonno/4fda5a1703d187e416f026cc79dc3407 to your computer and use it in GitHub Desktop.
Draw method in C# MonoGame
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.CornflowerBlue);
_spriteBatch.Begin();
_player1.Draw(_spriteBatch);
_player2.Draw(_spriteBatch);
_spriteBatch.End();
base.Draw(gameTime);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment