Creating a MonoGame Project for Windows (Desktop)
MonoGame is added as a component of Visual Studio, so development is essentially done in Visual Studio.
Start Visual Studio and create a new project.
MonoGame only supports "C#" in the programming language, so select C#from the tree on the left and select MonoGame.
This time we're going to create a game project for the Windows desktop, so select MonoGame Windows Project from the middle list. If you want to choose another platform or framework, you will choose another project.
Enter the name and location of the project in the field below and create it with the "OK" button.
The structure of the created project is as shown in the diagram. MonoGame is based on XNA Game Studio, so it's not much different from the project configuration of XNA Game Studio. Some are configured for MonoGame.
This is the image that opened the Game1.cs file. The code is almost identical to when you created the XNA Game Studio project. The class is almost the same, so if you are experienced, you should be able to start development immediately.
I'm just going to create a project this time, so I'll try to run it as it is.
A window is displayed and the game screen is displayed. Since the initial code only clears the background color, you will be incorporating game logic from now on.