MonoGame – Changing the resolution.

An important element of a game is changing the resolution and switching the game to fullscreen.
However, I would not like to complicate the tutorial so I will show you simply how to do this in MonoGame.
First, create a new C# file and name it ResolutionChanger.cs, and add this source code:

This class named ResolutionChanger will help you to change the game resolution and set the fullscreen mode.
Into the Game1.cs file the source code comes with these changes:

Run it and test with ALT+ENTER keys for fullscreen and ESC key to exit from the game.
The game will start with the default resolution of 640 x 480 pixels.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.