- #MONOGAME VISUAL STUDIO TEMPLATE HOW TO#
- #MONOGAME VISUAL STUDIO TEMPLATE ANDROID#
- #MONOGAME VISUAL STUDIO TEMPLATE CODE#
- #MONOGAME VISUAL STUDIO TEMPLATE DOWNLOAD#
- #MONOGAME VISUAL STUDIO TEMPLATE FREE#
The first step involves moving the Content.mcgb file in the Solution Explorer to the shared project. Per the blog post, we will need to make some changes to a couple of project settings. Īt this point, in order to make sure the Content tool was accessible to the Desktop project, I had to do a bit of research outside of the tutorial to get the shared reference to work. If you’re not familiar with how MonoGame handles game content, I’d suggest you read through this great tutorial and explanation by RB Whitaker. In accordance with the MonkeyTap tutorial I linked to, then, I cut and pasted the Content folder from the Desktop project to the shared project. In addition to our code, we also want to make sure that the game’s content, such as our sprites, backgrounds, and sounds, are all part of the shared project.
#MONOGAME VISUAL STUDIO TEMPLATE CODE#
At that time, it was only a cornflower blue screen, because I hadn’t added any new code by then, but that was fine, because I just needed to make sure that everything was working so far.
I pressed F5, and just as I hoped, the game ran.
#MONOGAME VISUAL STUDIO TEMPLATE ANDROID#
I will repeat this step once I add the Android project to my solution as well.Īfter I did that step, I needed to make sure that my project would run so far with the shared reference. Make sure that you click the “OK” button after you tick the checkbox for the Shared Project you want to reference. Here I added a reference to the shared project in my desktop project If you’re following the tutorial I linked, the steps it tells you to do are: “choose File -> New Solution -> MonoGame -> Library -> MonoGame Shared Library and name the project MonkeyTap.” Instead, I did these steps: File -> New -> Project -> Shared Project, as seen in the GIF below. Unfortunately, the version of MonoGame/VS 2017 that I have does not have the MonoGame Shared Library template that the tutorial mentioned available, so I created a C# shared library instead. I will be referencing it throughout this write-up, so you might want to read through it before reading the rest of this post. I’d highly recommend working through it if you are new to MonoGame. I read about shared projects in this tutorial. This approach saves you time and effort, because instead of duplicating the same base code for each platform, you can write it once and then reuse as needed. These additional projects will have a reference to the shared project. A shared project allows you to create one common code base that can be used for different platforms, and then you can create additional projects that are specific to each platform. This game is multi-platform, so we’ll be using a shared project, so that we can have a common code base for both Windows, Android, and any future platforms. As an independent developer myself, I thought it might be useful for other game devs or tech people. It’s called ScreenToGif, which you can find at.
#MONOGAME VISUAL STUDIO TEMPLATE FREE#
I’ve found a very useful free tool that I used to create the GIF screenshots for this tutorial.
#MONOGAME VISUAL STUDIO TEMPLATE DOWNLOAD#
If you want to follow my devlog or visit the download page for this game, check out my Itch.io game page at I’ve already made progress in the project, so in the screenshots I share, you’ll see that I’ve already started the coding and the project file structure. So, if you’re using a different setup, you might notice some differences.
#MONOGAME VISUAL STUDIO TEMPLATE HOW TO#
In this post, I will start walking you through what I’ve done so far, so that if you want to know how to do something similar in MonoGame, I can hopefully be of some help to you.įirst off, I am using an older laptop running Windows 8.1, and am running MonoGame using Visual Studio 2017. I know I haven’t been good about updating, so I have a lot of catching up to do.
This can be beneficial to other community members reading this thread.I mentioned last fall that I would be migrating Brain Bouncer to MonoGame, and that I would be posting updates on my process. Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. So, when the folder MonoGame inside that folder gets moved to the first one, and the devenv.exe /installvstemplates command gets executed, the templates show up. The MonoGame installer installs to C:\Users\user\Documents\ Visual Studio 2015\Templates\ProjectTemplates\Visual C# The MonoGame installer puts the Templates in the wrong folder for Visual Studio 2015.Ĭ:\Users\user\Documents\ Visual Studio 14\Templates\ProjectTemplates\Visual C# I found the others meet the same issue and report it here:
Since Monogame is a third-party extension, I suggest you could go to here: