Questions tagged [monogame]

MonoGame is an OpenSource implementation of Microsoft's XNA 4 APIs that allows developers to build games that run on Android, iPhone, iPad, Mac OS, Linux, PlayStation Mobile (2D only), Windows 8 Store, Windows Phone 8, and OUYA, while reusing their existing XNA code that runs on Windows, Xbox 360, or Windows Phone 7. It supports both OpenGL and DirectX rendering.

MonoGame is an OpenSource implementation of Microsoft's XNA 4 APIs that allows developers to build games that run on Android, iPhone, iPad, Mac OS, Linux, PlayStation Mobile (2D only), Windows 8 Store, Windows Phone 8, Windows 10, and OUYA, while reusing their existing XNA code that runs on Windows, Xbox 360, or Windows Phone 7. It supports both OpenGL and DirectX rendering.

Recent versions of MonoGame includes a bundled content pipeline. This eliminates the need to use the XNA 4 Content Pipeline, which is not available for all platforms. The new MonoGame pipeline allows for management of assets completely independent of XNA.

Information:

Code:

Questions or Problems:

1862 questions
5
votes
1 answer

Monogame XNA low framerate from few Draw() calls

I've been porting a scrolling shooter game I made in XNA over to Linux using MonoGame. Almost everything has gone smoothly, but I'm having an issue in a specific place with calls to SpriteBatch.Draw() crippling the framerate. Most of the game runs…
cmark89
  • 247
  • 2
  • 9
5
votes
1 answer

Does Guide.IsTrialMode work in MonoGame for a Windows 8 Store App?

I've been using XNA to make games for the xbox and windows phone 7. Now I want to create a metro Windows 8 Store app, using MonoGame. I've successfully jumped through all the hoops and got it working, but am having an issue with Guide.IsTrialMode. I…
George Duckett
  • 31,770
  • 9
  • 95
  • 162
5
votes
5 answers

Debugging an application called from another in Visual Studio?

I have a lobby application which invokes a client-application (think: League of Legends). They're two separate applications and the first invokes the second from itself - how can I get Visual Studio to debug this application as well?
Vaughan Hilts
  • 2,839
  • 1
  • 20
  • 39
5
votes
3 answers

Code runs correctly only when stepping through it with debugger?

Possible Duplicate: Random number generator only generating one random number I was a bit baffled with this few moments ago. I have the following code: public blockType generateRandomBlock() { Random random = new Random(); int…
Serguei Fedorov
  • 7,763
  • 9
  • 63
  • 94
5
votes
2 answers

How do I get the underlying Window in MonoGame?

I'm converting Gleed2D from XNA to MonoGame. Gleed2D is a Windows Form application that instantiates an XnaGame. The window created by the Game is then hidden and the DeviceWindowHandle is set to that of a Canvas on the main form. I know that's a…
Steve Dunn
  • 21,044
  • 11
  • 62
  • 87
5
votes
2 answers

Entering text in Windows 8 in C#/MonoGame app

I'm writing a WinRT game for Windows 8, in C#, using the excellent MonoGame. I've reached the part where the user has achieved a high score and needs to enter their name. This is causing me more pain than I'd anticipated so I thought I'd ask for…
Adam Dawes
  • 188
  • 2
  • 10
5
votes
2 answers

Linking Content Project (XNA) to a non XNA project

Can I reference a Content Project to a Non-XNA project (MonoGame, if it's important)?
Gilad Naaman
  • 6,390
  • 15
  • 52
  • 82
5
votes
2 answers

MonoGame Mac installation instructions

Does anyone know how to install MonoGame on Mac. I have been looking around for a while and I can't find any guides. I have Mono and MonoDevelop up and running fine, but I cannot figure out how to install MonoGame. Thanks.
user1150769
  • 395
  • 1
  • 4
  • 17
4
votes
3 answers

XNA Texture2D caching

Is a class such as this necessary? public class ContentCache { private readonly ContentManager _content; private readonly Dictionary _textureCache = new Dictionary(); public…
jonathanpeppers
  • 26,115
  • 21
  • 99
  • 182
4
votes
1 answer

Error MSB3073 when creating a Monogame C# project in Visual Studio 2019

So I'm trying to simply create a new Monogame project in Visual Studio 2019 with C#, and every time I create a new project, the following error appears: Error MSB3073 - The command "dotnet…
kosude
  • 177
  • 3
  • 14
4
votes
1 answer

How to enable Anti-Aliasing using DrawUserPrimitive on MonoGame

How to enable the Anti-Aliasing using MonoGame to DrawUserPrimitives? I've saw this other question: Drawing Bezier curves in MonoGame (XNA) produces scratchy lines But the code isn't enabling the Anti-Alias. I've setup a sample application here:…
Vinicius Jarina
  • 797
  • 5
  • 16
4
votes
2 answers

Monogame, Nez: Switching scenes, opening menu

I am starting with Monogame and Nez library/engine, and I am struggling with opening menu. My original idea was that game will be one Scene class, menu another one. On Esc key I will set Core.scene to new instance of menu scene and remember the…
Kaven
  • 147
  • 1
  • 11
4
votes
2 answers

Creating instance of class from System.Type variable

I'm trying to build up a simple game engine in XNA much inspired by Unity. What I'm currently working on is Components that can be attached to gameobjects. I have classes like "PlayerController" and "Collider" that are components and therefor…
4
votes
1 answer

What is the AppX folder?

When my UWP app builds, it goes into the output path of the current project. Inside this, there is always an additional folder called "AppX" that contains duplicates of everything. When the same app installed from the store, there is no AppX folder…
Jarryd
  • 572
  • 4
  • 13
4
votes
2 answers

Setup project Cross-Platform with Monogame

I've been trying to figure out on how to setup a Cross-Platform project for MonoGame. Whats the conventional way of doing so ? Is that done through a Shared Project and can I keep all my content in 1 project ? Also I am not sure if this information…
Dylan Wijnen
  • 219
  • 3
  • 13