Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

MonoGame

> 数据库
Open source

One framework for creating powerful cross-platform games.

14.3K stars0 likes1 views
WebsiteGitHub

About

One framework for creating powerful cross-platform games.

Overview

MonoGame is a simple and powerful .NET framework for creating games for desktop PCs, video game consoles, and mobile devices using the C# programming language. It has been successfully used to create games such as Streets of Rage 4, Carrion, Celeste, Stardew Valley, and many others.

It is an open-source re-implementation of the discontinued Microsoft's XNA Framework.

Supported Platforms

We support a growing list of platforms across the desktop, mobile, and console space. If there is a platform we do not support, please make a request or come help us add it.

  • Desktop PCs
    • Windows 10 (22H2+) and up (OpenGL[^1] & DirectX 10[^2])
    • Linux[^3] and up (OpenGL[^1])
    • macOS 13 "Ventura" and up (OpenGL[^1])
  • Mobile/Tablet Devices
    • Android 6 (API 23) and up (OpenGL)
    • iOS/iPadOS 12.2 and up (OpenGL)
  • Consoles (for registered developers)
    • PlayStation 4
    • PlayStation 5
    • Xbox (GDKX & XDK)
    • Nintendo Switch 1 & 2

[!NOTE] Vulkan and DirectX12 graphics support is also being added in preview for 3.8.5 for supported platforms.

[^1]: An experimental Vulkan implementation is available to source code users.

[^2]: An experimental DirectX 12 implementation is available to source code users.

[^3]: Requires a distribution with glibc 2.27 or up. This includes SteamOS 3.0 and up, Ubuntu 22.04 and up, Debian 12 and up, CentOS 9 and up among other unlisted distributions.

Resources

  • Getting started →
  • "How To" Guides →
  • Documentation Hub →
  • API Reference →
  • Community Tutorials →

Samples

Check out the awesome game samples maintained by the MonoGame team:

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

Support and Contributions

If you think you have found a bug or have a feature request, use our issue tracker. Before opening a new issue, please search to see if your problem has already been reported. Try to be as detailed as possible in your issue reports.

If you need help using MonoGame or have other questions we suggest you post on GitHub discussions page or Discord server. Please do not use the issue tracker for personal support requests.

If you are interested in contributing fixes or features to MonoGame, please read our contributors guide first.

Subscription

If you would like to help the project by supporting us financially, consider supporting us via a subscription for the price of a monthly coffee.

Money goes towards hosting, new hardware and if enough people subscribe a dedicated developer.

There are several options on our Donation Page.

Source Code

[!NOTE] For the prerequisites to build from source, please refer to the Requirements file.

The full source code is available here from GitHub:

  • Clone the source: git clone --recurse-submodules https://github.com/MonoGame/MonoGame.git (including resursive submodules).
  • Set up the submodules: git submodule update --init
  • Open the solution for your target platform to build the game framework.
  • Open the Tools solution for your development platform to build the pipeline and content tools.

A high level breakdown of the components of the framework:

  • The game framework is found in MonoGame.Framework.
  • The content pipeline is located in MonoGame.Framework.Content.Pipeline.
  • Project templates are in Templates.
  • See Tests for the framework unit tests.
  • See Tools/Tests for the content pipeline and other tool tests.
  • The mgcb is a command line tool for content processing.
  • The mgfxc is a command line effect compiler tool.
  • The mgcb-editor tool is a GUI frontend for content processing.
  • (Preview) The Content Builder Project is a new console app framework for content processing.

Helpful Links

  • The official website is monogame.net.
  • Our issue tracker is on GitHub.
  • You can join the Discord server and chat live with the core developers and other users.
  • The official documentation is on our website.
  • Download release and development packages.
  • Release and Preview releases are also available on NuGet.Org.
  • Follow @MonoGameTeam on Twitter/X, BlueSky and Mastodon.
  • Get premium content on Patreon.

License

The MonoGame project is under the Microsoft Public License except for a few portions of the code. See the LICENSE.txt file for more details. Third-party libraries used by MonoGame are under their own licenses. Please refer to those libraries for details on the license they use.

Issues· 754 open

View all issuesOpen on GitHub
  • #9543

    DX12: GamePadState.IsButtonDown(Buttons.LeftTrigger/RightTrigger) always returns false

    bugscope: directxscope: gamepadplatform: windowsUpdated Oct 1, 2026
  • #9397

    Content Builder: BuildAsset appends hashcode to dependencies already built by wildcards

    bugscope: content-pipelinescope: content-builderstatus: needs-designUpdated Oct 1, 2026
  • #9459

    Vulkan/Mac - RenderTarget2D losing data when drawn on

    bugscope: graphicsscope: vulkanplatform: macosUpdated Sep 30, 2026
  • #8840

    GamePad.Back input never triggers on Android 16, breaking back button detection

    bugscope: inputstatus: needs-infoplatform: androidUpdated Sep 29, 2026
  • #1995

    sRGB Gamma Support

    featurescope: apiscope: graphicsstatus: needs-designUpdated Sep 29, 2026
  • #8525

    Marketing: The Press Pack zip file needs updating to current logos etc.

    docsscope: docspriority: lowUpdated Sep 29, 2026
  • #9129

    Support input wav files higher than 48khz

    enhancementscope: content-pipelinescope: audioUpdated Sep 29, 2026
  • #9453

    Pipeline Nuget is too large

    bugscope: content-pipelinescope: templatesUpdated Sep 29, 2026
  • #9515

    New Web Platform

    featurescope: graphicsscope: nativeUpdated Sep 25, 2026
  • #9544

    Future Web Platform Enhancments

    featureenhancementUpdated Sep 25, 2026

> Tags

C#3dc-sharpcross-platformcsharp

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库