Simple. Modern. Customizable.
MonoGame.WpfCore is a super simple way to embed MonoGame into WPF applications.
It’s a minimal, low dependency way to create your own MonoGame based editor using .NET Core in Visual Studio 2019.
Great tools help make great games.Spend as much time on tools as possible.
- John Romero – id Software
Over the years several attempts have been made to embed MonoGame into WPF applications. Most of them are complicated, outdated and no longer work with the latest version of MonoGame.
For these reasons, I made sure it’s as simple and robust as possible:
- The WPF project references the official MonoGame.Framework.WindowsDX NuGet package.
- All of the files required to get MonoGame working in WPF are included in the project template.
- After the project is created, everything can be customized to suit your needs.
MonoGame.WpfCore is built as a
dotnet new template. This makes it possible to get a new MonoGame WPF application up and running in minutes with a few simple steps:
Install .NET Core 3.0 (if you haven’t got it already)
Clone the github repository
Install the template:
dotnet new -i MonoGame.WpfCore\
Create the new project.
mkdir MyLevelEditor cd MyLevelEditor dotnet new monogamewpf
Full instructions are in the README.
Of course, nothing new is perfect. If you find any problems please raise issues on github.