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
7
votes
2 answers

Android API IsConnected returning TRUE after Signing Out

I am developing a game for Android using Google Play Game Services, using Xamarin. I am doing my testing using a Genymotion Android Emulator. I have run into an issue that appears to be a bug in either Google Play or Xamarin's implementation. If I…
Goose
  • 1,307
  • 2
  • 14
  • 28
7
votes
1 answer

Bug after Samsung update | Monogame | Detecting viewport.height as devices width

UPDATE This issue have also been discussed in: https://github.com/mono/MonoGame/issues/2492 The problem is if the app is only allowed to run in Landscape orientation, not when you use Portrait or both. Got a android game coded in monogame, where I…
7
votes
1 answer

Switching between Monogame and UIKit

I've been searching and searching but can't seem to find a solution that works for what I'm trying to do, and I'm almost at the point where I have to ask if it is even possible. I'm using Xamarin Studio to develop an iOS app. I have a few different…
halterdev
  • 333
  • 4
  • 17
7
votes
3 answers

Draw Rectangle in MonoGame

How do you draw shapes, such as Rectangles and Circles, in MonoGame without having to save the a predrawn shape in the Content folder? DrawRectangle() and DrawEllipse() are for Windows Form and do not work in OpenGL, which is what I am using.
Evorlor
  • 7,263
  • 17
  • 70
  • 141
7
votes
2 answers

XNA/Mono Effect Throwing Runtime Cast Exception

As a foreword, the exact same code works just fine in XNA, but Monogame throws an exception. This likely requires someone familiar with the Monogame rendering pipeline. During the Draw section of my game, there's a ShadowmapResolver that renders…
selkathguy
  • 1,171
  • 7
  • 17
7
votes
3 answers

Monogame Shader Porting Issues

Ok so I ported a game I have been working on over to Monogame, however I'm having a shader issue now that it's ported. It's an odd bug, since it works on my old XNA project and it also works the first time I use it in the new monogame project, but…
Shane S
  • 83
  • 3
7
votes
1 answer

Change texture transparency at runtime on MonoGame

I am very new with MonoGame library. I load a texture from .xnb file _background = content.Load(_backgroundKey); and then i want to change it transparancy(alpha) at the runtime. Oh i found how to do it myself spriteBatch.Draw(texture,…
igorGIS
  • 1,888
  • 4
  • 27
  • 41
7
votes
1 answer

XNA/Monogame, Fastest way to draw multiple sheared/skewed sprites

I normally work with SpriteBatch in XNA/Monogame for 2d games and have just recently delved into 3D drawing methods such as DrawUserIndexedPrimatives and the like. I'm working on a project where our animators would like to have the ability to shear…
MattB
  • 157
  • 1
  • 8
7
votes
5 answers

Can't get content to load using Monogame with VS2012

My code is new GameFont(Content.Load("LoadingFont"), "LoadingFont") According to what I've read, you have to use VS2010 to compile your assets into .xnb format, which I have done, and place them into the Content subfolder in your bin…
NibblyPig
  • 51,118
  • 72
  • 200
  • 356
7
votes
1 answer

Can I code Windows 8 RT Games in C#

Is it possible to code a Windows 8 RT and/or Windows 8 Phone game using C#?
Vaccano
  • 78,325
  • 149
  • 468
  • 850
7
votes
2 answers

MonoTouch AOT Compiler - large methods fail

I'm working on a game, and we have been storing our level information in JSON format. These levels are quite large, so we switched to just storing them in plain C#: A top level method has a switch statement for the name of the level/object There…
jonathanpeppers
  • 26,115
  • 21
  • 99
  • 182
6
votes
1 answer

Change Farseer Physics Engine settings to improve performances

I have sucessfully used Farseer to develop one of my game using XNA. The game runs like a charm in Windows and WP7. I'm currently working on porting my game in IOS using Monotouch and Monogame. I've sucessfully compiled and used Farseer also over…
Francesco
  • 4,794
  • 1
  • 19
  • 27
6
votes
1 answer

Open On-Screen Keyboard for Xamarin/Monogame

I'm developing a game using Xamarin/Monogame and I need to open the keyboard on a mobile device when they click on my input control. I recognize that I can capture input using Keyboard.GetState() when I'm using the emulator and my keyboard, but real…
Will Custode
  • 4,576
  • 3
  • 26
  • 51
6
votes
1 answer

Constant Visual Studio Update Required popup for Monogame 3.4 and Windows 10 UAP project

So, I’ve been trying to launch Monogame template on Windows Phone emulator with Visual Studio, but I couldn’t get it work. This is what I have tried: In my project I have encountered a problem with creating a Monogame project for Windows UAP in…
6
votes
2 answers

Drawing Bezier curves in MonoGame (XNA) produces scratchy lines

I recently got into using MonoGame, and I love the library. However, I seem to be having some issues with drawing bezier curves The result that my code produces looks something like this Look bad, no? The lines aren't smooth at all. Let me show you…
Razacx
  • 144
  • 1
  • 9