NET Core Runtime and much easier distribution of your games for Windows, macOS and Linux. NET ecosystem and allow for exciting new features like.
This brings us up to date with the latest improvements in the. Details of the release from the MonoGame What’s New post: NET core support, NuGet installation and more. Major new features of MonoGame including. Let's import the sprite we're going to display in our game.MonoGame, the spiritual successor to Microsoft’s XNA game framework, just released MonoGame 3.8 after more than a year in development. This tool lets us import different file formats into our project without writing any line of code. In case it opens into the editor, you can open it via: left-click / Open with / MonoGame Pipeline Tool You can find it on the rightmost VS window (as shown underneath). To import the texture, we're going to use MonoGame's pipeline tool. I didn't make this, a friend of mine did.
For now, we're going to hard code everything into the Game1 class (I will write some articles about OOP later on).Īs an example, I'm going to use this as our player. With everything clarified, we can start designing the bases of our first game. Inside Draw, we create the visual aspects of our game, placing textures on the scene. Draw, similarly to Update, it runs multiple times.This method lets us create the interactivity needed by any game, such as collisions detection and input handling.
Here, for example, we could initialize our classes.
Further, we can use a blank project template.Īll you need to do is getting Visual Studio from Microsoft's website ( VS Community is the free version) and installing it.Īfter that, just download MonoGame from their website and install it. VS provides us with some useful tools such as Unit Testing and debugging tools. The best way to work with MonoGame is to implement it in Visual Studio. If you're interested in setting up a MonoGame project for any other OS, you should MonoGame's website out. PremiseĪs I mainly work on Windows (and I have no access to macOS), this tutorial is going to teach you about setting up a MonoGame project in Visual Studio on Windows. Using Visual Studio to create your first MonoGame Project in C#. Setting Up a MonoGame Project in Visual Studio