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
6
votes
1 answer

3D modelling on an Android Project in Xamarin Studio

I've got an existing solution in Xamarin for an app that I'm working on. However I need to do some 3D rendering as part of it. I've looked at MonoGame however I can't see any way to directly import it as another activity so that I can easily switch…
Cjen1
  • 1,826
  • 3
  • 17
  • 47
6
votes
1 answer

Xamarin realease build lower size

I made a game using monogame and xamarin studio for android. I switch to "release" build and when i build my solution the .apk is 35.6MB. Note that i copied it on my phone and installed it and it works. However how can i reduce this size ?…
dimitris93
  • 4,155
  • 11
  • 50
  • 86
6
votes
2 answers

How to get display resolution (screen size)?

How to get display resolution in XNA/Monogame ? I tried these on my monitor (1600x900): The below give me 800,600 //1. GraphicsDevice.DisplayMode.Width GraphicsDevice.DisplayMode.Height //2. GraphicsDeviceManager graphics = new…
dimitris93
  • 4,155
  • 11
  • 50
  • 86
6
votes
4 answers

Loading an XML file via the Monogame content pipeline?

I am currently trying to port a game I am working on from XNA to Monogame, but I am having some trouble getting the content pipeline to cooperate. My game uses a number of XML files as XNB assets to represent objects in the game, which I created…
Hunter X
  • 61
  • 1
  • 2
6
votes
4 answers

Getting Monogame content pipeline to work with Visual studio 2013 in windows 8

I've got monogame working in VS 2013 but I can't get the content pipeline to work. When I try to import an existing Content pipeline Project I get the following error. And I can't create a new project since the templates arent installed in…
JensB
  • 6,663
  • 2
  • 55
  • 94
6
votes
3 answers

Workaround for Texture2D.GetData method

I’m converting a game from XNA to iOS with Monogame. In the code snippet below, smallDeform is a Texture2D on which I call the GetData method. smallDeform = Game.Content.Load("Terrain/..."); smallDeform.GetData(smallDeformData, 0,…
pinckerman
  • 4,115
  • 6
  • 33
  • 42
6
votes
1 answer

VS2012, C#, Monogame - load asset exception

I've been fighting with this problems for days now, browsing through the net, yet nothing helped me solve it: I'm creating a MonoGame application on Visual Studio 2012, yet when trying to load a texture I get the following problem: Could not load…
6
votes
4 answers

Getting the angle between Vector2

I want to move the star (coin in my code) to the exact top right corner of the screen when the car hit the star. Both star and road are moving downward at a constant speed during each update. The car does not move but appears to be moving upward…
PutraKg
  • 2,226
  • 3
  • 31
  • 60
6
votes
2 answers

monogame content load file not found exception

The following post looks similar to my issue, but ultimately it doesn't look exactly the same down to all the details, so I am calling that out to prevent claims that its the same. I am following this monogame tutorial (currently on step 2) in…
BotHead
  • 171
  • 1
  • 5
6
votes
1 answer

Ambiguous reference between MonoGame & Microsoft.XNA.Framework namespaces

MonoGame (a framework which basically brings XNA to Windows Phone 8) has all it's namespaces prefixed with Microsoft.Xna.Framework I believe to minimise the amount of code changes required when porting your XNA app to MonoGame. My issue is, I wish…
GONeale
  • 26,302
  • 21
  • 106
  • 149
6
votes
2 answers

MonoGame reading touch gestures

I am currently writing a game using the fantastic monogame framework. I am having trouble reacting to touch input correctly. When a user drags horizontally or vertically I want to perform an action once per drag. The problem is the gesture is…
Kevin Holditch
  • 5,165
  • 3
  • 19
  • 35
6
votes
2 answers

Can't add new monogame content project to solution in VS2012

I'm trying to add a new MonoGame content project (via templates installed in the MonoGame 3.0 installer) to an existing solution in Visual Studio 2012 (Professional), but it always comes up with the following dialog box: It does create a few empty…
Sam Bloomberg
  • 705
  • 1
  • 6
  • 23
6
votes
2 answers

Use MonoGame in WPF

Can I mix MonoGame with XAML in WPF appliaction? For example: core of game written in MonoGame, but UI written in XAML and placed on top of MonoGame-Canvas. I know that I can use XAML on MonoGame in WinRT. Can I do same things in WPF?
AndreyAkinshin
  • 18,603
  • 29
  • 96
  • 155
5
votes
1 answer

Issue Running Monogame in F#

I am experimenting a bit with F# and I am wanted to see if I could do some simple stuff with Monogame in F#. I figured the translation from C# to f# would be straightforward but it has not been so far. The code I have so far is just a simple empty…
kiooikml
  • 307
  • 1
  • 7
5
votes
2 answers

How to open a new MonoGame Desktop Project in Visual Studio 2019 Community Edition?

I heard that MonoGame is a replacement for XNA but i do not know how to open the desktop project. Specifically, what workload should I install to be able to develop MonoGame projects on Windows?