Guide
Getting Started with MonoGame
This guide is adapted from the archived wiki. It keeps every step keyboard-friendly and high-contrast compliant.
Download the runnable sample project
Use the verified ZIP bundle for this article to review the extracted example files, run the sample host, and repackage the sources without bin or obj folders.
Prerequisites
Create a new project
Use your terminal to scaffold a desktop project and open it in your editor.
dotnet new mgdesktopgl -n MyGame
cd MyGame
code .
Run the project
dotnet build
dotnet run
Render a clear screen
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.CornflowerBlue);
base.Draw(gameTime);
}
Next steps
Need larger tap targets? Toggle enhanced spacing in the header. Your preference is saved in session storage.