A number of simple MonoGame samples for all the supported platforms:
Platformer 2D Sample | NeonShooter |
---|---|
Supported on all platforms | Supported on all platforms |
The Platformer 2D sample is a basic 2D platformer pulled from the original XNA samples and upgraded for MonoGame. | Neon Shooter Is a graphically intensive twin-stick shooter with particle effects and save data from Michael Hoffman |
Auto Pong Sample | Ship Game 3D |
---|---|
Supported on all platforms | GL / DX/ iOS / Android |
A short sample project showing you how to make the classic game of pong, with generated soundfx, in 300 lines of code. | 3D Ship Game (Descent clone) sample, pulled from the XNA archives and updated for MonoGame |
A new template sample is also available which guides through the building of a MonoGame project from start to finish.
FuelCell Sample | Coming Soon |
---|---|
Supported on all platforms | Platforms |
A full featured 3D project with full documentation from start to finish for building a 3D style game. | More samples coming soon |
These samples can either be opened and built in Visual Studio for Mac or Windows, alternatively they can be built with the .NET Core tool chain (with the exception of the Windows UWP sample, which is Windows 10 only).
All the sample projects currently refererence version 3.8.*
of our released nugets. At time of writing 3.8.2.1105
, the current stable release. If you want to build and test these samples against a newer set of nugets, go to each directory's .config/dotnet-tools.json
file and modfify the "version": "3.8.2.1105"
attribute to a newer one. This includes using CI built nugets that look like 3.8.*.*-develop
.
Note: If using CI nugets, be sure to unzip the nugets to an accessible directory. Then make sure that you add the directory to the list of nuget sources on your machine. Something like:
dotnet nuget add source [unzipped-directory-location] -n MG-Nugets
For more details on building projects with the .NET Core tools, please see this guide on the MonoGame documentation site and for more details on nuget package sources.
The MonoGame samples demonstrate all the public platforms available for use.
Platforms such as XBox, Playstation, Switch and Stadia are private platforms which you need developer accounts with their corresponding vendors to access.
- Windows (Desktop GL, Windows DX, UWP)
- Mac (Desktop GL)
- Linux (Desktop GL)
- Android (Android)
- iOS (iOS)
Note: to build a project for iOS or Mac, you will need a MAC. They will build on Windows but cannot be published unless built on a Mac.
For more details on the platforms supported by MonoGame, please see the Platforms Guide on the MonoGame Documentation site